| 68 | .withMaxNumRegisters(256 * 1024) |
| 69 | .withMicrotaskQueue(true) |
| 70 | .withEnableHermesInternal(true) |
| 71 | .withES6Promise(true) |
| 72 | .withES6Class(true) |
| 73 | .withEnableBlockScoping(true) |
| 74 | .build(); |
| 75 | } |
| 76 | |
| 77 | HermesJavaScriptContext::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()); |
no test coverage detected