Closed Bug 1511485 Opened 6 years ago Closed 4 years ago

WasmTextToBinary: does not accept all valid characters in identifiers (slash, backslash)

Categories

(Core :: JavaScript: WebAssembly, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 1612534

People

(Reporter: volker.berlin, Unassigned, Mentored)

References

Details

(Keywords: good-first-bug)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Steps to reproduce:

Call the the line:
wasmTextToBinary(read('test.wat'));

with the file content:
(module
  (import "global.Math" "max" (func $de/inetsoftware/jwebassembly/CallFunctions$TestClass.abc))
)


Actual results:

SyntaxError: wasm text error: parsing wasm text at 2:40

I test version JavaScript-C65.0a1 from https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-win64.zip


Expected results:

Laut webassembly spec at https://webassembly.github.io/spec/core/text/values.html#text-id

are slashes and backslashes valid characters in identifiers and it should be parsed.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Blocks: 1527871
Mentor: bbouvier
Keywords: good-first-bug
Type: defect → enhancement
Type: enhancement → defect
Summary: WasmTextToBinary: accept not all valid characters in identifiers → WasmTextToBinary: does not accept all valid characters in identifiers (slash, backslash)
Depends on: 1612534

(In reply to Volker Berlin from comment #0)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Steps to reproduce:

Call the the line:
wasmTextToBinary(read('test.wat'));

with the file content:
(module
(import "global.Math" "max" (func
$de/inetsoftware/jwebassembly/CallFunctions$TestClass.abc))
)

Actual results:

SyntaxError: wasm text error: parsing wasm text at 2:40

I test version JavaScript-C65.0a1 from
https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
jsshell-win64.zip

Expected results:

Laut webassembly spec at
https://webassembly.github.io/spec/core/text/values.html#text-id

are slashes and backslashes valid characters in identifiers and it should be
parsed.

Just tested this again now that bug 1612534 has landed and this now passes.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.