forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes golang#56084 This changes allow to pass an arbitrary object from the JS world to the WASM program. - if no object is provided, globalThis is returned instead. - the scope object is derive from internal jsGo object, avoiding a possible ID clash when the scope is unset (so left as globalThis) - test uses a dummy object to perform a simple get/set action. Change-Id: I71afd43f6b32d04b76c3760ac5b2cb6c0c9dbd73 GitHub-Last-Rev: 44a0f15 GitHub-Pull-Request: golang#56867
- Loading branch information
1 parent
c83b1a7
commit 0e5cc46
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters