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
/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:946returnnewError("\n"+(0,_helperCodeFrame.codeFrameFromSource)(source,token.loc)+"\n"+"Unexpected token in instruction argument"+", given "+tokenToString(token));^
Error:
(module(func(export"add")(param$n1i32)(param$n2i32)(resulti32)local.get$n1local.get$n2^^^^^i32.add))Unexpectedtokenininstructionargument,givennameat/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:946:20atparseFuncInstrArguments(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:947:12)atparseFuncInstr(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:1068:37)atparseFunc(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:1182:23)atwalk(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:1623:22)atparseModule(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:858:27)atwalk(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:1635:22)atObject.parse(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/grammar.js:1776:15)atparse(/Users/coderaiser/webasm/node_modules/@webassemblyjs/wast-parser/lib/index.js:33:20)
at file:///Users/coderaiser/webasm/index.mjs:14:13
The text was updated successfully, but these errors were encountered:
MDN says and wabt thinks that
local.get
:With such code:
I see crash:
The text was updated successfully, but these errors were encountered: