baf84940f4
They are added under the global scope object, as follows: { "memory": ..., "globals": { "global#0": ..., "global#1": ..., "global#2": ..., } } We currently don't have any way to name globals in the wasm binary format, but it is possible to extend the name section with these names in the future. Bug: v8:6846 Change-Id: I79fa4ed3d83964bc8e26d66516605d41e92b3d03 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1601829 Commit-Queue: Ben Smith <binji@chromium.org> Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#61425}
8 lines
197 B
Plaintext
8 lines
197 B
Plaintext
Test wasm scope information with anyref globals
|
|
Waiting for wasm script to be parsed.
|
|
Setting breakpoint in wasm.
|
|
Running main.
|
|
Paused in debugger.
|
|
globals: {"global#0": hello, world}
|
|
Finished.
|