parse import.meta correctly (#4836)
This commit is contained in:
@@ -204,12 +204,18 @@ var VALUES = [
|
||||
'"function"',
|
||||
"this",
|
||||
];
|
||||
VALUES = VALUES.concat(VALUES);
|
||||
VALUES = VALUES.concat(VALUES);
|
||||
if (SUPPORT.bigint) VALUES = VALUES.concat([
|
||||
"(!0o644n)",
|
||||
"([3n][0] > 2)",
|
||||
"(-42n).toString()",
|
||||
"Number(0XDEADn << 16n | 0xbeefn)",
|
||||
]);
|
||||
VALUES = VALUES.concat(VALUES);
|
||||
VALUES = VALUES.concat(VALUES);
|
||||
VALUES = VALUES.concat(VALUES);
|
||||
VALUES.push("import.meta");
|
||||
|
||||
var BINARY_OPS = [
|
||||
" + ", // spaces needed to disambiguate with ++ cases (could otherwise cause syntax errors)
|
||||
|
||||
Reference in New Issue
Block a user