<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node-new.git/lib/internal/source_map/source_map_cache.js, branch main</title>
<subtitle>github.com: nodejs/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/'/>
<entry>
<title>lib: add trailing commas to more internal files</title>
<updated>2023-02-26T10:34:02+00:00</updated>
<author>
<name>Antoine du Hamel</name>
<email>duhamelantoine1995@gmail.com</email>
</author>
<published>2023-02-26T10:34:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=5f76836277ac915cb8c85d4a5c73185bf1024c72'/>
<id>5f76836277ac915cb8c85d4a5c73185bf1024c72</id>
<content type='text'>

PR-URL: https://github.com/nodejs/node/pull/46811
Reviewed-By: Moshe Atlow &lt;moshe@atlow.co.il&gt;
Reviewed-By: Debadree Chatterjee &lt;debadree333@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Trivikram Kamat &lt;trivikr.dev@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

PR-URL: https://github.com/nodejs/node/pull/46811
Reviewed-By: Moshe Atlow &lt;moshe@atlow.co.il&gt;
Reviewed-By: Debadree Chatterjee &lt;debadree333@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Trivikram Kamat &lt;trivikr.dev@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>lib: remove unnecessary ObjectGetValueSafe</title>
<updated>2023-01-30T10:54:58+00:00</updated>
<author>
<name>Chengzhong Wu</name>
<email>legendecas@gmail.com</email>
</author>
<published>2023-01-30T10:54:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=f35723b8d0939a08cc6f82a924c715344fc71b0a'/>
<id>f35723b8d0939a08cc6f82a924c715344fc71b0a</id>
<content type='text'>
PR-URL: https://github.com/nodejs/node/pull/46335
Reviewed-By: Luigi Pinca &lt;luigipinca@gmail.com&gt;
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
Reviewed-By: Ben Noordhuis &lt;info@bnoordhuis.nl&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR-URL: https://github.com/nodejs/node/pull/46335
Reviewed-By: Luigi Pinca &lt;luigipinca@gmail.com&gt;
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
Reviewed-By: Ben Noordhuis &lt;info@bnoordhuis.nl&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>lib: cache parsed source maps to reduce memory footprint</title>
<updated>2023-01-22T11:25:19+00:00</updated>
<author>
<name>Chengzhong Wu</name>
<email>chengzhong.wcz@alibaba-inc.com</email>
</author>
<published>2023-01-22T11:25:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=651c09c18cf85e01ecc16d14a96fd498bf6346c7'/>
<id>651c09c18cf85e01ecc16d14a96fd498bf6346c7</id>
<content type='text'>
This also improves performance to map the stack trace when the
`Error.stack` is accessed.

PR-URL: https://github.com/nodejs/node/pull/46225
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Ben Noordhuis &lt;info@bnoordhuis.nl&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This also improves performance to map the stack trace when the
`Error.stack` is accessed.

PR-URL: https://github.com/nodejs/node/pull/46225
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Ben Noordhuis &lt;info@bnoordhuis.nl&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>tools: add `prefer-proto` rule</title>
<updated>2023-01-10T05:38:36+00:00</updated>
<author>
<name>Jordan Harband</name>
<email>ljharb@gmail.com</email>
</author>
<published>2023-01-10T05:38:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=757c10414776b6f035ced453599527a841f47d6e'/>
<id>757c10414776b6f035ced453599527a841f47d6e</id>
<content type='text'>
fixup: add support for `Object.create(null)`

fixup: extend to any 1-argument Object.create call

fixup: add tests
PR-URL: https://github.com/nodejs/node/pull/46083
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Mohammed Keyvanzadeh &lt;mohammadkeyvanzade94@gmail.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
Reviewed-By: Michaël Zasso &lt;targos@protonmail.com&gt;
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixup: add support for `Object.create(null)`

fixup: extend to any 1-argument Object.create call

fixup: add tests
PR-URL: https://github.com/nodejs/node/pull/46083
Reviewed-By: Colin Ihrig &lt;cjihrig@gmail.com&gt;
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Mohammed Keyvanzadeh &lt;mohammadkeyvanzade94@gmail.com&gt;
Reviewed-By: Darshan Sen &lt;raisinten@gmail.com&gt;
Reviewed-By: Michaël Zasso &lt;targos@protonmail.com&gt;
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>lib: lazy-load deps in source_map_cache.js</title>
<updated>2022-12-16T11:44:03+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2022-12-13T21:32:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=f1a84aee196e8ac6c5bc24ccd076caa58d39bc02'/>
<id>f1a84aee196e8ac6c5bc24ccd076caa58d39bc02</id>
<content type='text'>
So that the file can be snapshotted.

PR-URL: https://github.com/nodejs/node/pull/45849
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So that the file can be snapshotted.

PR-URL: https://github.com/nodejs/node/pull/45849
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>modules: move modules/cjs/helpers.js to modules/helpers.js</title>
<updated>2022-12-16T11:43:56+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2022-12-13T21:24:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=9d9bdfc693b6e207d24c40e52c7034f6abd83b2a'/>
<id>9d9bdfc693b6e207d24c40e52c7034f6abd83b2a</id>
<content type='text'>
The helpers are actually shared by the two loaders, so move them
under modules/ directly.

PR-URL: https://github.com/nodejs/node/pull/45849
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The helpers are actually shared by the two loaders, so move them
under modules/ directly.

PR-URL: https://github.com/nodejs/node/pull/45849
Reviewed-By: Geoffrey Booth &lt;webadmin@geoffreybooth.com&gt;
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>bootstrap: lazy load non-essential modules</title>
<updated>2022-12-09T22:37:35+00:00</updated>
<author>
<name>Joyee Cheung</name>
<email>joyeec9h3@gmail.com</email>
</author>
<published>2022-12-09T22:37:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=265ea1e74ef429f7c27f05ac4cc9136adf2e8d9b'/>
<id>265ea1e74ef429f7c27f05ac4cc9136adf2e8d9b</id>
<content type='text'>
It turns out that even with startup snapshots, there is a non-trivial
overhead for loading internal modules. This patch makes the loading
of the non-essential modules lazy again.

Caveat: we have to make some of the globals lazily-loaded too,
so the WPT runner is updated to test what the state of the global
scope is after the globals are accessed (and replaced with the
loaded value).

PR-URL: https://github.com/nodejs/node/pull/45659
Reviewed-By: Matteo Collina &lt;matteo.collina@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Daeyeon Jeong &lt;daeyeon.dev@gmail.com&gt;
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Rafael Gonzaga &lt;rafael.nunu@hotmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
Reviewed-By: Minwoo Jung &lt;nodecorelab@gmail.com&gt;
Reviewed-By: Tierney Cyren &lt;hello@bnb.im&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It turns out that even with startup snapshots, there is a non-trivial
overhead for loading internal modules. This patch makes the loading
of the non-essential modules lazy again.

Caveat: we have to make some of the globals lazily-loaded too,
so the WPT runner is updated to test what the state of the global
scope is after the globals are accessed (and replaced with the
loaded value).

PR-URL: https://github.com/nodejs/node/pull/45659
Reviewed-By: Matteo Collina &lt;matteo.collina@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Daeyeon Jeong &lt;daeyeon.dev@gmail.com&gt;
Reviewed-By: Jacob Smith &lt;jacob@frende.me&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Rafael Gonzaga &lt;rafael.nunu@hotmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
Reviewed-By: Minwoo Jung &lt;nodecorelab@gmail.com&gt;
Reviewed-By: Tierney Cyren &lt;hello@bnb.im&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>src,lib: retrieve parsed source map url from v8</title>
<updated>2022-10-23T14:37:21+00:00</updated>
<author>
<name>legendecas</name>
<email>legendecas@gmail.com</email>
</author>
<published>2022-09-26T16:55:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=6bdc101c6383ca59eac9524da611fd20cdbd2256'/>
<id>6bdc101c6383ca59eac9524da611fd20cdbd2256</id>
<content type='text'>
V8 already parses the source map magic comments. Currently, only scripts
and functions expose the parsed source map URLs. It is unnecessary to
parse the source map magic comments again when the parsed information is
available.

PR-URL: https://github.com/nodejs/node/pull/44798
Reviewed-By: Joyee Cheung &lt;joyeec9h3@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Jan Krems &lt;jan.krems@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
V8 already parses the source map magic comments. Currently, only scripts
and functions expose the parsed source map URLs. It is unnecessary to
parse the source map magic comments again when the parsed information is
available.

PR-URL: https://github.com/nodejs/node/pull/44798
Reviewed-By: Joyee Cheung &lt;joyeec9h3@gmail.com&gt;
Reviewed-By: James M Snell &lt;jasnell@gmail.com&gt;
Reviewed-By: Yagiz Nizipli &lt;yagiz@nizipli.com&gt;
Reviewed-By: Jan Krems &lt;jan.krems@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: don't match `sourceMappingURL` in strings</title>
<updated>2022-09-25T16:11:18+00:00</updated>
<author>
<name>Alan Agius</name>
<email>alanagius@google.com</email>
</author>
<published>2022-09-16T09:03:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=e6018e28643d1ca63f0b11e4bba994dc93f14550'/>
<id>e6018e28643d1ca63f0b11e4bba994dc93f14550</id>
<content type='text'>
Prior to this change `sourceMappingURL` in string where being matched
by the RegExp which caused sourcemaps not be loaded when using the
`--enable-source-maps` flag. This commit changes the RegExp to match
the last occurrence.

Fixes: https://github.com/nodejs/node/issues/44654
PR-URL: https://github.com/nodejs/node/pull/44658
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this change `sourceMappingURL` in string where being matched
by the RegExp which caused sourcemaps not be loaded when using the
`--enable-source-maps` flag. This commit changes the RegExp to match
the last occurrence.

Fixes: https://github.com/nodejs/node/issues/44654
PR-URL: https://github.com/nodejs/node/pull/44658
Reviewed-By: Chengzhong Wu &lt;legendecas@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: codify findSourceMap return value when not found</title>
<updated>2022-08-27T23:13:53+00:00</updated>
<author>
<name>Chengzhong Wu</name>
<email>legendecas@gmail.com</email>
</author>
<published>2022-08-27T23:13:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node-new.git/commit/?id=72df448d2a896cbc8ab0d8a61b71b34da6582cec'/>
<id>72df448d2a896cbc8ab0d8a61b71b34da6582cec</id>
<content type='text'>
Return `undefined` when no source map is found for the given filename on
`findSourceMap`.

PR-URL: https://github.com/nodejs/node/pull/44397
Fixes: https://github.com/nodejs/node/issues/44391
Reviewed-By: Luigi Pinca &lt;luigipinca@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return `undefined` when no source map is found for the given filename on
`findSourceMap`.

PR-URL: https://github.com/nodejs/node/pull/44397
Fixes: https://github.com/nodejs/node/issues/44391
Reviewed-By: Luigi Pinca &lt;luigipinca@gmail.com&gt;
Reviewed-By: Antoine du Hamel &lt;duhamelantoine1995@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
