MCPcopy Create free account
hub / github.com/Snapchat/Valdi / newObject

Method newObject

valdi/src/valdi/v8/V8JavaScriptContext.cpp:285–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 return StringCache::getGlobal().makeString(stringData, stringLength);
284}
285
286JSValueRef V8JavaScriptContext::newObject(JSExceptionTracker& exceptionTracker) {
287 v8::HandleScope handleScope(_isolate);
288 auto val = v8::Object::New(_isolate);
289 return toRetainedJSValueRef(IndirectV8Persistent::make(_isolate, val));
290}
291
292static void InvokeCallable(const v8::FunctionCallbackInfo<v8::Value>& info) {

Callers 1

mainFunction · 0.45

Calls 1

NewFunction · 0.50

Tested by

no test coverage detected