From 98121de5be6f948740c5869095381d6e7a18b9ea Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 11 Dec 2023 11:23:50 -0500 Subject: 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 :1:33 ``` --- ext/node/analyze.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') 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> = Lazy::new(|| { "interface", "let", "long", + "mod", "native", "new", "null", -- cgit v1.2.3