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

Function CompileScript

nan.h:992–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990 }
991
992 inline MaybeLocal<BoundScript> CompileScript(
993 v8::Local<v8::String> s
994 , const v8::ScriptOrigin& origin
995 ) {
996 v8::Isolate *isolate = v8::Isolate::GetCurrent();
997 v8::EscapableHandleScope scope(isolate);
998 v8::ScriptCompiler::Source source(s, origin);
999 return scope.Escape(
1000 v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
1001 .FromMaybe(v8::Local<BoundScript>()));
1002 }
1003
1004 inline MaybeLocal<BoundScript> CompileScript(
1005 v8::Local<v8::String> s

Callers 1

NAN_METHODFunction · 0.85

Calls 2

EscapeMethod · 0.80
FromMaybeMethod · 0.45

Tested by

no test coverage detected