mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Add initial shadow realm support behind an off-by-default flag `--experimental-shadow-realm`. PR-URL: https://github.com/nodejs/node/pull/42869 Refs: https://github.com/nodejs/node/issues/42528 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
17 lines
350 B
C++
17 lines
350 B
C++
#include "node_shadow_realm.h"
|
|
|
|
namespace node {
|
|
namespace shadow_realm {
|
|
using v8::Context;
|
|
using v8::Local;
|
|
using v8::MaybeLocal;
|
|
|
|
// static
|
|
MaybeLocal<Context> HostCreateShadowRealmContextCallback(
|
|
Local<Context> initiator_context) {
|
|
return Context::New(initiator_context->GetIsolate());
|
|
}
|
|
|
|
} // namespace shadow_realm
|
|
} // namespace node
|