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

Method enqueueMicrotask

valdi/src/valdi/jscore/JavaScriptCoreContext.cpp:1050–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1048
1049bool JavaScriptCoreContext::isValueEqual(const Valdi::JSValue& left, const Valdi::JSValue& right) {
1050 return fromValdiJSValue(left).asObjectRef() == fromValdiJSValue(right).asObjectRef();
1051}
1052
1053Valdi::ValueType JavaScriptCoreContext::getValueType(const Valdi::JSValue& value) {
1054 auto contextRef = getJSGlobalContext();
1055 auto jsCoreValue = fromValdiJSValue(value);
1056 switch (jsCoreValue.type) {
1057 case kJSTypeUndefined:
1058 return Valdi::ValueType::Undefined;
1059 case kJSTypeNull:
1060 return Valdi::ValueType::Null;
1061 case kJSTypeBoolean:

Callers

nothing calls this directly

Calls 2

asObjectRefOrThrowMethod · 0.80
fromValdiJSValueFunction · 0.70

Tested by

no test coverage detected