summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--tests/specs/npm/require_type_commonjs/main.out14
3 files changed, 7 insertions, 13 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 92a3c5056..945e49348 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1273,9 +1273,9 @@ dependencies = [
[[package]]
name = "deno_ast"
-version = "0.42.0"
+version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b08d11d9e4086b00d3428650e31153cf5896586411763cb88a6423ce5b18791"
+checksum = "89ea2fd038c9c7e3e87e624fd708303cd33f39c33707f6c48fa9a65d65fefc47"
dependencies = [
"base64 0.21.7",
"deno_media_type",
diff --git a/Cargo.toml b/Cargo.toml
index 4ce310539..ce333c728 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,7 +45,7 @@ license = "MIT"
repository = "https://github.com/denoland/deno"
[workspace.dependencies]
-deno_ast = { version = "=0.42.0", features = ["transpiling"] }
+deno_ast = { version = "=0.42.1", features = ["transpiling"] }
deno_core = { version = "0.311.0" }
deno_bench_util = { version = "0.162.0", path = "./bench_util" }
diff --git a/tests/specs/npm/require_type_commonjs/main.out b/tests/specs/npm/require_type_commonjs/main.out
index f7a81572c..d715db8a9 100644
--- a/tests/specs/npm/require_type_commonjs/main.out
+++ b/tests/specs/npm/require_type_commonjs/main.out
@@ -1,10 +1,4 @@
-error: Uncaught (in promise) SyntaxError: Unexpected token 'export'
- at Object.evalContext (ext:core/01_core.js:[WILDCARD])
- at wrapSafe (node:module:[WILDCARD])
- at Module._compile (node:module:[WILDCARD])
- at Object.Module._extensions..js (node:module:[WILDCARD])
- at Module.load (node:module:[WILDCARD])
- at Function.Module._load (node:module:[WILDCARD])
- at Module.require (node:module:[WILDCARD])
- at require (node:module:[WILDCARD])
- at file:///[WILDCARD]/@denotest/type-commonjs/1.0.0/index.js:3:13
+error: 'import', and 'export' cannot be used outside of module code at file://[WILDCARD]/@denotest/type-commonjs/1.0.0/index.js:1:1
+
+ export {};
+ ~~~~~~