Skip to content

Commit 9b422ab

Browse files
committed
Merge branch 'main' into hexfloats
2 parents 191f8f6 + 141e350 commit 9b422ab

File tree

234 files changed

+56879
-54920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+56879
-54920
lines changed

package-lock.json

+8-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"engineStrict": true,
2727
"dependencies": {
28-
"binaryen": "109.0.0-nightly.20220813",
28+
"binaryen": "109.0.0-nightly.20220826",
2929
"long": "^5.2.0"
3030
},
3131
"devDependencies": {

src/builtins.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,7 @@ function builtin_assert(ctx: BuiltinContext): ExpressionRef {
34733473
case TypeKind.ANYREF:
34743474
case TypeKind.EQREF:
34753475
case TypeKind.DATAREF:
3476-
case TypeKind.I31REF: return module.if(module.ref_is(RefIsOp.RefIsNull, arg0), abort);
3476+
case TypeKind.I31REF: return module.if(module.ref_is(RefIsOp.Null, arg0), abort);
34773477

34783478
}
34793479
} else {
@@ -3558,7 +3558,7 @@ function builtin_assert(ctx: BuiltinContext): ExpressionRef {
35583558
case TypeKind.I31REF: {
35593559
let temp = flow.getTempLocal(type);
35603560
let ret = module.if(
3561-
module.ref_is(RefIsOp.RefIsNull,
3561+
module.ref_is(RefIsOp.Null,
35623562
module.local_tee(temp.index, arg0, false) // ref
35633563
),
35643564
abort,

src/common.ts

+3
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ export namespace CommonNames {
257257
export const newArray = "__newArray";
258258
export const BLOCK = "~lib/rt/common/BLOCK";
259259
export const OBJECT = "~lib/rt/common/OBJECT";
260+
// memory & table
261+
export const DefaultMemory = "0";
262+
export const DefaultTable = "0";
260263
}
261264

262265
// shared

0 commit comments

Comments
 (0)