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

Method valueToTypedArray

valdi/src/valdi/v8/V8JavaScriptContext.cpp:900–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898
899 auto val_ = fromValdiJSValue(_isolate, value, exceptionTracker);
900 if (!exceptionTracker) {
901 return false;
902 }
903
904 v8::Local<v8::Value> val;
905
906 if (val_->IsBooleanObject()) {
907 val = val_->ToBoolean(_isolate);
908 } else {
909 val = val_;
910 }
911
912 return val->BooleanValue(_isolate);
913}
914
915double V8JavaScriptContext::valueToDouble(const JSValue& value, JSExceptionTracker& exceptionTracker) {
916 v8::HandleScope handleScope(_isolate);

Callers 1

marshallMethod · 0.45

Calls 7

JSTypedArrayClass · 0.85
BufferMethod · 0.80
fromValdiJSValueFunction · 0.70
getTypedArrayTypeFunction · 0.70
onErrorMethod · 0.65
CastFunction · 0.50
DataMethod · 0.45

Tested by

no test coverage detected