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

Function makeRuntimeConfig

valdi/src/valdi/hermes/HermesJavaScriptContext.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 .withMaxNumRegisters(256 * 1024)
69 .withMicrotaskQueue(true)
70 .withEnableHermesInternal(true)
71 .withES6Promise(true)
72 .withES6Class(true)
73 .withEnableBlockScoping(true)
74 .build();
75}
76
77HermesJavaScriptContext::HermesJavaScriptContext(JavaScriptTaskScheduler* taskScheduler,
78 [[maybe_unused]] ILogger& logger)
79 : IJavaScriptContext(taskScheduler),
80 _logger(logger),
81 _managedValues(kManagedValuesOccupancyRatio, kManagedValuesSizingWeight) {
82#if defined(HERMES_API)
83 _jsiRuntime = facebook::hermes::makeHermesRuntime(makeRuntimeConfig());

Callers 2

startDebuggerMethod · 0.85

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected