diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2023-12-11 11:23:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 17:23:50 +0100 |
| commit | 98121de5be6f948740c5869095381d6e7a18b9ea (patch) | |
| tree | fb0b533ed5a309113622a51bcb16595505f140d6 /ext/node/analyze.rs | |
| parent | 7bf267c197fc6a5cbafa0e72992b1cc7629ff989 (diff) | |
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
```
Diffstat (limited to 'ext/node/analyze.rs')
| -rw-r--r-- | ext/node/analyze.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/analyze.rs b/ext/node/analyze.rs index c2d3c79c0..173ce5385 100644 --- a/ext/node/analyze.rs +++ b/ext/node/analyze.rs @@ -351,6 +351,7 @@ static RESERVED_WORDS: Lazy<HashSet<&str>> = Lazy::new(|| { "interface", "let", "long", + "mod", "native", "new", "null", |
