From c040786f37246f40ae29402fbdb6e97031a21713 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Mon, 17 Dec 2018 17:15:40 -0500 Subject: [PATCH] doc/go1.12: add notes for syscall/js CLs 141644, 143137, 144384 Also update a Go 1 compatibility promise link to canonical URL. Updates #27592 Updates #28264 Change-Id: I5994a0a63e0870c1795c65016590dfad829d26a7 Reviewed-on: https://go-review.googlesource.com/c/154618 Reviewed-by: Richard Musiol Reviewed-by: Brad Fitzpatrick --- doc/go1.12.html | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index f1841cbffe..76c5fe3aac 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -27,7 +27,7 @@ Do not send CLs removing the interior tags from such phrases.

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.

@@ -732,19 +732,35 @@ for { This is a breaking change, but WebAssembly support is still experimental and not yet subject to the Go 1 compatibility promise. Any code using the - old name will need to be updated. + old names will need to be updated.

- 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.

-- 2.50.0