Skip to content

Commit 2009837

Browse files
committed
Downgrade import-meta to restore support for (incorrect) import.meta.es\u0063
1 parent d2fc5ce commit 2009837

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/import-meta/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ module.exports = function(Parser) {
3737
if (node.property.name !== "meta") {
3838
this.raiseRecoverable(node.property.start, "The only valid meta property for import is import.meta")
3939
}
40-
if (this.containsEsc) {
41-
this.raiseRecoverable(node.property.start, "\"meta\" in import.meta must not contain escape sequences")
42-
}
4340
return this.finishNode(node, "MetaProperty")
4441
};
4542

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"acorn-class-fields": "^0.3.1",
1717
"acorn-dynamic-import": "^4.0.0",
1818
"acorn-export-ns-from": "^0.1.0",
19-
"acorn-import-meta": "^1.0.0",
19+
"acorn-import-meta": "^0.3.0",
2020
"acorn-numeric-separator": "^0.3.0",
2121
"acorn-private-class-elements": "^0.1.1",
2222
"acorn-static-class-features": "^0.2.0",

0 commit comments

Comments
 (0)