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

Method importModule

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:2590–2598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2588 auto timeOrigin = getPerformanceTimeOrigin();
2589 context.setObjectProperty(
2590 performanceObject.get(), "timeOrigin", context.newNumber(timeOrigin.getTime()).get(), exceptionTracker);
2591 if (!exceptionTracker) {
2592 return;
2593 }
2594
2595 context.setObjectProperty(globalObject.get(), "performance", performanceObject.get(), exceptionTracker);
2596 if (!exceptionTracker) {
2597 return;
2598 }
2599
2600 auto processKey = STRING_LITERAL("process");
2601

Callers 5

callModuleFunctionMethod · 0.95
registerTypeConverterMethod · 0.95
evalModuleSyncMethod · 0.95

Calls 11

getBundleMethod · 0.80
callObjectPropertyMethod · 0.80
valueMethod · 0.65
endMethod · 0.65
getMethod · 0.65
findMethod · 0.45
toAbsolutePathMethod · 0.45
newStringUTF8Method · 0.45
newBoolMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected