From e9ab9ba9f0c47f01ebc41f3013b3f78962aaeca7 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 11 Dec 2023 19:17:36 +0900 Subject: 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 --- cli/tests/node_compat/test/parallel/test-querystring.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cli/tests/node_compat/test/parallel/test-querystring.js') 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' }], -- cgit v1.2.3