MCPcopy Create free account
hub / github.com/nodejs/nan / RunScript

Function RunScript

nan.h:1015–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013 }
1014
1015 inline MaybeLocal<v8::Value> RunScript(
1016 v8::Local<UnboundScript> script
1017 ) {
1018 v8::Isolate *isolate = v8::Isolate::GetCurrent();
1019 v8::EscapableHandleScope scope(isolate);
1020 return scope.Escape(script->BindToCurrentContext()
1021 ->Run(isolate->GetCurrentContext())
1022 .FromMaybe(v8::Local<v8::Value>()));
1023 }
1024
1025 inline MaybeLocal<v8::Value> RunScript(
1026 v8::Local<BoundScript> script

Callers 3

NAN_METHODFunction · 0.85
NAN_METHODFunction · 0.85
NAN_METHODFunction · 0.85

Calls 2

EscapeMethod · 0.80
FromMaybeMethod · 0.45

Tested by

no test coverage detected