| 860 | std::move(jsObject), *_runtime, toHandle(propertyName), toHandle(propertyValue)); |
| 861 | |
| 862 | checkException(result.getStatus(), exceptionTracker); |
| 863 | } |
| 864 | |
| 865 | void HermesJavaScriptContext::setObjectPropertyIndex(const JSValue& object, |
| 866 | size_t index, |
| 867 | const JSValue& value, |
| 868 | JSExceptionTracker& exceptionTracker) { |
| 869 | hermes::vm::GCScope gcScope(*_runtime); |
| 870 | auto jsObject = toJSObject(object, exceptionTracker); |
| 871 | if (!jsObject) { |
| 872 | return; |
| 873 | } |
| 874 | |
| 875 | auto result = hermes::vm::JSObject::putComputed_RJS( |
| 876 | std::move(jsObject), |
| 877 | *_runtime, |
| 878 | _runtime->makeHandle(hermes::vm::HermesValue::encodeTrustedNumberValue(index)), |
| 879 | toHandle(value)); |
| 880 | |
| 881 | checkException(result.getStatus(), exceptionTracker); |
| 882 | } |
| 883 | |
| 884 | hermes::vm::CallResult<hermes::vm::PseudoHandle<hermes::vm::HermesValue>> HermesJavaScriptContext::doCall( |
| 885 | hermes::vm::ScopedNativeCallFrame& callFrame, |
| 886 | const hermes::vm::Handle<hermes::vm::Callable>& handle, |
| 887 | JSFunctionCallContext& callContext) { |
| 888 | if (callFrame.overflowed()) { |
| 889 | return _runtime->raiseStackOverflow(hermes::vm::Runtime::StackOverflowKind::NativeStack); |
| 890 | } |
nothing calls this directly
no test coverage detected