Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository

Switch branch/tag
  • go
  • src
  • net
  • http
  • roundtrip_js.go
Find file BlameHistoryPermalink
  • Richard Musiol's avatar
    syscall/js: garbage collect references to JavaScript values · 54e6ba67
    Richard Musiol authored Oct 26, 2019
    The js.Value struct now contains a pointer, so a finalizer can
    determine if the value is not referenced by Go any more.
    
    Unfortunately this breaks Go's == operator with js.Value. This change
    adds a new Equal method to check for the equality of two Values.
    This is a breaking change. The == operator is now disallowed to
    not silently break code.
    
    Additionally the helper methods IsUndefined, IsNull and IsNaN got added.
    
    Fixes #35111
    
    Change-Id: I58a50ca18f477bf51a259c668a8ba15bfa76c955
    Reviewed-on: https://go-review.googlesource.com/c/go/+/203600
    
    
    Run-TryBot: Richard Musiol <neelance@gmail.com>
    Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    54e6ba67

Replace roundtrip_js.go

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7