mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src: bootstrap prepare stack trace callback in shadow realm
Bootstrap per-realm callbacks like `prepare_stack_trace_callback` in the ShadowRealm. This enables stack trace decoration in the ShadowRealm. PR-URL: https://github.com/nodejs/node/pull/47107 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
edaa9f4102
commit
3a014dc38a
20 changed files with 141 additions and 83 deletions
|
@ -190,7 +190,7 @@ class Hooks {
|
|||
filename: '<preload>',
|
||||
},
|
||||
);
|
||||
const { BuiltinModule } = require('internal/bootstrap/loaders');
|
||||
const { BuiltinModule } = require('internal/bootstrap/realm');
|
||||
// We only allow replacing the importMetaInitializer during preload;
|
||||
// after preload is finished, we disable the ability to replace it.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue