diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-12-11 19:17:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 19:17:36 +0900 |
commit | e9ab9ba9f0c47f01ebc41f3013b3f78962aaeca7 (patch) | |
tree | d14e6f2c4074bf40f44d4a3bf8b12ba5c5e7c8b8 /cli/tests/node_compat/test/parallel/test-util-promisify.js | |
parent | 02e138dca9c9fd79f47d352114b45b21dbb2b2ba (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-util-promisify.js')
-rw-r--r-- | cli/tests/node_compat/test/parallel/test-util-promisify.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/tests/node_compat/test/parallel/test-util-promisify.js b/cli/tests/node_compat/test/parallel/test-util-promisify.js index 0c5b64349..8046f6fb8 100644 --- a/cli/tests/node_compat/test/parallel/test-util-promisify.js +++ b/cli/tests/node_compat/test/parallel/test-util-promisify.js @@ -81,12 +81,11 @@ const stat = promisify(fs.stat); // })); // } -// TODO(wafuwafu13): Implement "vm.runInNewContext" -// { -// const fn = vm.runInNewContext('(function() {})'); -// assert.notStrictEqual(Object.getPrototypeOf(promisify(fn)), -// Function.prototype); -// } +{ + const fn = vm.runInNewContext('(function() {})'); + assert.notStrictEqual(Object.getPrototypeOf(promisify(fn)), + Function.prototype); +} { function fn(callback) { |