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

Method newArray

valdi/src/valdi/v8/V8JavaScriptContext.cpp:395–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395JSValueRef V8JavaScriptContext::newArray(size_t initialSize, JSExceptionTracker& exceptionTracker) {
396 v8::HandleScope handleScope(_isolate);
397 auto val = v8::Array::New(_isolate, 0);
398 return toRetainedJSValueRef(IndirectV8Persistent::make(_isolate, val));
399}
400
401JSValueRef V8JavaScriptContext::newArrayWithValues(const JSValue* values,
402 size_t size,

Callers 9

valueToJSValueFunction · 0.45
runtimeGetAssetsMethod · 0.45
newArrayBuilderMethod · 0.45
getProtobufRepeatedFieldFunction · 0.45
namespaceEntriesToJSFunction · 0.45
codepointsToStrMethod · 0.45

Calls 1

NewFunction · 0.50

Tested by

no test coverage detected