diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-08-02 01:17:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-02 01:17:38 +0200 |
| commit | 21f1b2f62b1fac9089c214d9b862fce2359d30fd (patch) | |
| tree | c18cc3724c0ed18b5cb62915c0afc1f2e1723cdb /ext/node/polyfills/01_require.js | |
| parent | 00b5fe8ba31240f6e6abf668ebda8ed0c40fb524 (diff) | |
feat(node): add polyfill for node:test module (#20002)
This commit provides basic polyfill for "node:test" module. Currently
only top-level "test" function is polyfilled, all remaining functions from
that module throw not implemented errors.
Diffstat (limited to 'ext/node/polyfills/01_require.js')
| -rw-r--r-- | ext/node/polyfills/01_require.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index c58dad9a4..acdf8402f 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -117,6 +117,7 @@ import streamPromises from "node:stream/promises"; import streamWeb from "node:stream/web"; import stringDecoder from "node:string_decoder"; import sys from "node:sys"; +import test from "node:test"; import timers from "node:timers"; import timersPromises from "node:timers/promises"; import tls from "node:tls"; @@ -219,6 +220,7 @@ function setupBuiltinModules() { "stream/web": streamWeb, string_decoder: stringDecoder, sys, + test, timers, "timers/promises": timersPromises, tls, |
