You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2020. It is now read-only.
After upgrading to 1.0.13, some tests in the SpiderMonkey wasm test suites that were supposed to fail stopped failing, this is from wasm/comments.js:
assertErrorMessage(() => wasmEvalText(';; only comment'), SyntaxError, /wasm text error/);
assertErrorMessage(() => wasmEvalText(';; only comment\n'), SyntaxError, /wasm text error/);
assertErrorMessage(() => wasmEvalText('(; only comment ;)'), SyntaxError, /wasm text error/);
assertErrorMessage(() => wasmEvalText(';; only comment\n'), SyntaxError, /wasm text error/);
These test that a comment by itself does not make a source file; the source file has to define a module, as suggested by https://webassembly.github.io/spec/core/text/modules.html#text-module. Clearly a text processor can do whatever it wants here but at least there's a discussion to be had.
I'm not dogmatic on this but I'd love to know if this change was deliberate or not.
After upgrading to 1.0.13, some tests in the SpiderMonkey wasm test suites that were supposed to fail stopped failing, this is from wasm/comments.js:
These test that a comment by itself does not make a source file; the source file has to define a module, as suggested by https://webassembly.github.io/spec/core/text/modules.html#text-module. Clearly a text processor can do whatever it wants here but at least there's a discussion to be had.
I'm not dogmatic on this but I'd love to know if this change was deliberate or not.