summaryrefslogtreecommitdiff
path: root/cli/tests/node_compat/test/parallel/test-querystring.js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2023-12-11 19:17:36 +0900
committerGitHub <noreply@github.com>2023-12-11 19:17:36 +0900
commite9ab9ba9f0c47f01ebc41f3013b3f78962aaeca7 (patch)
treed14e6f2c4074bf40f44d4a3bf8b12ba5c5e7c8b8 /cli/tests/node_compat/test/parallel/test-querystring.js
parent02e138dca9c9fd79f47d352114b45b21dbb2b2ba (diff)
test(ext/node): enable some compat test cases (#21532)
This change uncomments Node.js compat test cases which was enabled by the addition of `vm.runInNewContext` https://github.com/denoland/deno/pull/21527
Diffstat (limited to 'cli/tests/node_compat/test/parallel/test-querystring.js')
-rw-r--r--cli/tests/node_compat/test/parallel/test-querystring.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-querystring.js b/cli/tests/node_compat/test/parallel/test-querystring.js
index 933f6b1ba..fb8176da5 100644
--- a/cli/tests/node_compat/test/parallel/test-querystring.js
+++ b/cli/tests/node_compat/test/parallel/test-querystring.js
@@ -155,14 +155,13 @@ const qsWeirdObjects = [
[{ a: 1, b: [] }, 'a=1', { 'a': '1' }],
];
-// TODO(wafuwafu13): Enable this when `vm` is implemented.
-// const vm = require('vm');
-// const foreignObject = vm.runInNewContext('({"foo": ["bar", "baz"]})');
+const vm = require('vm');
+const foreignObject = vm.runInNewContext('({"foo": ["bar", "baz"]})');
const qsNoMungeTestCases = [
['', {}],
['foo=bar&foo=baz', { 'foo': ['bar', 'baz'] }],
- // ['foo=bar&foo=baz', foreignObject],
+ ['foo=bar&foo=baz', foreignObject],
['blah=burp', { 'blah': 'burp' }],
['a=!-._~\'()*', { 'a': '!-._~\'()*' }],
['a=abcdefghijklmnopqrstuvwxyz', { 'a': 'abcdefghijklmnopqrstuvwxyz' }],