File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,11 @@ var exp = asmLink(asmCompile(USE_ASM + "var x=0; function a() { return x|0 } fun
148148assertEq ( exp . c ( 10 ) , undefined ) ;
149149assertEq ( exp . a ( ) , 10 ) ;
150150
151- var f = asmLink ( asmCompile ( USE_ASM + "function f(i) { i=i|0; switch(i|0) { case 1: i=-1; break; case 133742 : i=2; break; default: i=42; break } return i|0 } return f" ) ) ;
151+ var f = asmLink ( asmCompile ( USE_ASM + "function f(i) { i=i|0; switch(i|0) { case 1: i=-1; break; case 65520 : i=2; break; default: i=42; break } return i|0 } return f" ) ) ;
152152assertEq ( f ( 1 ) , - 1 ) ;
153153assertEq ( f ( 2 ) , 42 ) ;
154- assertEq ( f ( 133742 ) , 2 ) ;
155- assertEq ( f ( 133743 ) , 42 ) ;
154+ assertEq ( f ( 65520 ) , 2 ) ;
155+ assertEq ( f ( 65521 ) , 42 ) ;
156156
157157var f = asmLink ( asmCompile ( USE_ASM + "function f(i) { i=i|0; switch(i|0) { case 1: i=42; break; default: i=13 } return i|0 } return f" ) ) ;
158158assertEq ( f ( - 1 ) , 13 ) ;
Original file line number Diff line number Diff line change @@ -1181,7 +1181,7 @@ static_assert(uint64_t(MaxArrayPayloadBytes) <
11811181// These limits pertain to our WebAssembly implementation only.
11821182
11831183static const unsigned MaxTryTableCatches = 10000 ;
1184- static const unsigned MaxBrTableElems = 1000000 ;
1184+ static const unsigned MaxBrTableElems = 65520 ;
11851185static const unsigned MaxCodeSectionBytes = MaxModuleBytes;
11861186static const unsigned MaxBranchHintValue = 2 ;
11871187
You can’t perform that action at this time.
0 commit comments