summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-11-25 11:41:21 -0500
committerGitHub <noreply@github.com>2023-11-25 11:41:21 -0500
commita4ec7dfae01485290af91c62c1ce17a742dcb104 (patch)
treeac5f66523e5151b56e10304026ba096871fbb825 /cli/tests/testdata
parent00e4c47890e9b5d95557b06f2048d14a79de8401 (diff)
feat(unstable): --unstable-unsafe-proto (#21313)
Closes https://github.com/denoland/deno/issues/21276
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/run/unsafe_proto/main.js5
-rw-r--r--cli/tests/testdata/run/unsafe_proto/main.out2
-rw-r--r--cli/tests/testdata/run/unsafe_proto/main_with_unsafe_proto_flag.out2
-rw-r--r--cli/tests/testdata/run/unsafe_proto/worker.js2
4 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/unsafe_proto/main.js b/cli/tests/testdata/run/unsafe_proto/main.js
new file mode 100644
index 000000000..eb95c55a0
--- /dev/null
+++ b/cli/tests/testdata/run/unsafe_proto/main.js
@@ -0,0 +1,5 @@
+console.log(Object.hasOwn(Object.prototype, "__proto__"));
+
+new Worker(import.meta.resolve("./worker.js"), {
+ type: "module",
+});
diff --git a/cli/tests/testdata/run/unsafe_proto/main.out b/cli/tests/testdata/run/unsafe_proto/main.out
new file mode 100644
index 000000000..4b095fd0f
--- /dev/null
+++ b/cli/tests/testdata/run/unsafe_proto/main.out
@@ -0,0 +1,2 @@
+false
+false
diff --git a/cli/tests/testdata/run/unsafe_proto/main_with_unsafe_proto_flag.out b/cli/tests/testdata/run/unsafe_proto/main_with_unsafe_proto_flag.out
new file mode 100644
index 000000000..bb101b641
--- /dev/null
+++ b/cli/tests/testdata/run/unsafe_proto/main_with_unsafe_proto_flag.out
@@ -0,0 +1,2 @@
+true
+true
diff --git a/cli/tests/testdata/run/unsafe_proto/worker.js b/cli/tests/testdata/run/unsafe_proto/worker.js
new file mode 100644
index 000000000..b22bc8713
--- /dev/null
+++ b/cli/tests/testdata/run/unsafe_proto/worker.js
@@ -0,0 +1,2 @@
+console.log(Object.hasOwn(Object.prototype, "__proto__"));
+close();