1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/ext
Marvin Hagemeister f21d48bc0a fix(ext/node): add missing _preloadModules hook (#18447)
This internal node hook is used by libraries such as `ts-node` when used
as a require hook `node -r ts-node/register`. That combination is often
used with test frameworks like `mocha` or `jasmine`.

We had a reference to `Module._preloadModules` in our code, but the
implementation was missing. While fixing this I also noticed that the
`fakeParent` module that we create internally always threw because of
the `pathDirname` check on the module id in the constructor of `Mdoule`.
So this code path was probably broken for a while.

```txt
✖ ERROR: Error: Empty filepath.
    at pathDirname (ext:deno_node/01_require.js:245:11)
    at new Module (ext:deno_node/01_require.js:446:15)
    at Function.Module._resolveFilename (ext:deno_node/01_require.js:754:28)
    at Function.resolve (ext:deno_node/01_require.js:1015:19)
```
2023-03-31 11:43:19 -06:00
..
broadcast_channel 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
cache 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
console 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
crypto 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
fetch refactor: make version and user_agent &'static str (#18400) 2023-03-31 11:43:18 -06:00
ffi 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
flash 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
fs chore: Improving FS Error Message for op_realpath_sync and op_realpath_async (#18404) 2023-03-31 11:43:18 -06:00
http 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
io 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
kv chore(ext/kv): add limits (#18415) 2023-03-31 11:43:18 -06:00
napi 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
net 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
node fix(ext/node): add missing _preloadModules hook (#18447) 2023-03-31 11:43:19 -06:00
tls 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
url 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
web fix(streams): add support Float64Array to ReadableStreamByobReader (#18188) 2023-03-31 11:43:18 -06:00
webidl 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
websocket 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00
webstorage 1.32.1 (#18396) 2023-03-23 21:00:23 +01:00