mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -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["let"] = "let";
|
||||
exports["long"] = "long";
|
||||
exports["mod"] = "mod";
|
||||
exports["native"] = "native";
|
||||
exports["new"] = "new";
|
||||
exports["null"] = "null";
|
||||
|
|
|
@ -56,6 +56,7 @@ Download http://localhost:4545/npm/registry/@denotest/reserved-word-exports/1.0.
|
|||
interface: "interface",
|
||||
let: "let",
|
||||
long: "long",
|
||||
mod: "mod",
|
||||
native: "native",
|
||||
new: "new",
|
||||
null: "null",
|
||||
|
@ -109,6 +110,7 @@ Download http://localhost:4545/npm/registry/@denotest/reserved-word-exports/1.0.
|
|||
interface: "interface",
|
||||
let: "let",
|
||||
long: "long",
|
||||
mod: "mod",
|
||||
native: "native",
|
||||
new: "new",
|
||||
null: "null",
|
||||
|
|
|
@ -351,6 +351,7 @@ static RESERVED_WORDS: Lazy<HashSet<&str>> = Lazy::new(|| {
|
|||
"interface",
|
||||
"let",
|
||||
"long",
|
||||
"mod",
|
||||
"native",
|
||||
"new",
|
||||
"null",
|
||||
|
|
Loading…
Reference in a new issue