From c040786f37246f40ae29402fbdb6e97031a21713 Mon Sep 17 00:00:00 2001
From: Dmitri Shuralyov
The latest Go release, version 1.12, arrives six months after Go 1.11.
Most of its changes are in TODO.
- As always, the release maintains the Go 1 promise of compatibility.
+ As always, the release maintains the Go 1 promise of compatibility.
We expect almost all Go programs to continue to compile and run as before.
- TODO: https://golang.org/cl/141644: add Wrapper interface to support external Value wrapper types
+ If a type implements the new
+ Wrapper
+ interface,
+ ValueOf
+ will use it to return the JavaScript value for that type.
- TODO: https://golang.org/cl/143137: make zero js.Value represent "undefined"
+ The meaning of the zero
+ Value
+ has changed. It now represents the JavaScript undefined
value
+ instead of the number zero.
+ This is a breaking change, but WebAssembly support is still experimental
+ and not yet subject to the
+ Go 1 compatibility promise. Any code relying on
+ the zero Value
+ to mean the number zero will need to be updated.
- TODO: https://golang.org/cl/144384: add the Value.Truthy method
+ The new
+ Value.Truthy
+ method reports the
+ JavaScript "truthiness"
+ of a given value.