Skip to content

Commit 3957058

Browse files
committed
Handle BigInt in MOZ_TO_ME
1 parent 086c90e commit 3957058

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/mozilla-ast.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,13 @@ import {
555555
return new AST_Number(args);
556556
case "boolean":
557557
return new (val ? AST_True : AST_False)(args);
558+
case "bigint":
559+
args.value = val;
560+
return new AST_BigInt(args);
561+
case "undefined":
562+
return undefined;
563+
default:
564+
throw new Error("Unhandled value type: " + typeof val);
558565
}
559566
},
560567
MetaProperty: function(M) {

0 commit comments

Comments
 (0)