mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 16:42:21 -05:00
fix: allow reserved word 'mod' in exports (#21537)
This problem occurred trying to load tensorflow.js ``` > import * as tf from 'npm:@tensorflow/tfjs'; Uncaught SyntaxError: Identifier 'mod' has already been declared at file:///Users/ry/Library/Caches/deno/npm/registry.npmjs.org/@tensorflow/tfjs/4.14.0/dist/tf.node.js:167:14 at async <anonymous>:1:33 ```
This commit is contained in:
parent
7bf267c197
commit
98121de5be
3 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,7 @@ exports["int"] = "int";
|
||||||
exports["interface"] = "interface";
|
exports["interface"] = "interface";
|
||||||
exports["let"] = "let";
|
exports["let"] = "let";
|
||||||
exports["long"] = "long";
|
exports["long"] = "long";
|
||||||
|
exports["mod"] = "mod";
|
||||||
exports["native"] = "native";
|
exports["native"] = "native";
|
||||||
exports["new"] = "new";
|
exports["new"] = "new";
|
||||||
exports["null"] = "null";
|
exports["null"] = "null";
|
||||||
|
|
|
@ -56,6 +56,7 @@ Download http://localhost:4545/npm/registry/@denotest/reserved-word-exports/1.0.
|
||||||
interface: "interface",
|
interface: "interface",
|
||||||
let: "let",
|
let: "let",
|
||||||
long: "long",
|
long: "long",
|
||||||
|
mod: "mod",
|
||||||
native: "native",
|
native: "native",
|
||||||
new: "new",
|
new: "new",
|
||||||
null: "null",
|
null: "null",
|
||||||
|
@ -109,6 +110,7 @@ Download http://localhost:4545/npm/registry/@denotest/reserved-word-exports/1.0.
|
||||||
interface: "interface",
|
interface: "interface",
|
||||||
let: "let",
|
let: "let",
|
||||||
long: "long",
|
long: "long",
|
||||||
|
mod: "mod",
|
||||||
native: "native",
|
native: "native",
|
||||||
new: "new",
|
new: "new",
|
||||||
null: "null",
|
null: "null",
|
||||||
|
|
|
@ -351,6 +351,7 @@ static RESERVED_WORDS: Lazy<HashSet<&str>> = Lazy::new(|| {
|
||||||
"interface",
|
"interface",
|
||||||
"let",
|
"let",
|
||||||
"long",
|
"long",
|
||||||
|
"mod",
|
||||||
"native",
|
"native",
|
||||||
"new",
|
"new",
|
||||||
"null",
|
"null",
|
||||||
|
|
Loading…
Reference in a new issue