WebAssembly / gc

Branch of the spec repo scoped to discussion of GC integration in WebAssembly
https://webassembly.github.io/gc/
Other
982 stars 70 forks source link

In the latest standard, ref.extern is gone, but its use still exists in test. #503

Closed Guo-yyds closed 6 months ago

Guo-yyds commented 8 months ago

In the latest standard, ref.extern is gone, but its use still exists in test.

image

image

rossberg commented 8 months ago

That's easy to explain: ref.extern isn't (and never was) part of Wasm itself, it is part of the extended wast test scripting language, and allows emulating host references. (It should probably be renamed ref.host at this point.)

q82419 commented 8 months ago

That's easy to explain: ref.extern isn't (and never was) part of Wasm itself, it is part of the extended wast test scripting language, and allows emulating host references. (It should probably be renamed ref.host at this point.)

Same question and resolved by this explain.

zapashcanon commented 8 months ago

FYI here is the description of the script language.