| 808 | if (result.getStatus() == hermes::vm::ExecutionStatus::EXCEPTION) { |
| 809 | _runtime->clearThrownValue(); |
| 810 | return false; |
| 811 | } |
| 812 | |
| 813 | return result.getValue(); |
| 814 | } |
| 815 | |
| 816 | void HermesJavaScriptContext::setObjectProperty(const JSValue& object, |
| 817 | const JSPropertyName& propertyName, |
| 818 | const JSValue& propertyValue, |
| 819 | bool enumerable, |
| 820 | JSExceptionTracker& exceptionTracker) { |
| 821 | hermes::vm::GCScope gcScope(*_runtime); |
| 822 | auto jsObject = toJSObject(object, exceptionTracker); |
| 823 | if (!jsObject) { |
| 824 | return; |
| 825 | } |
| 826 | |
| 827 | auto symbolId = toSymbolID(propertyName); |
| 828 | |
| 829 | if (enumerable) { |
nothing calls this directly
no test coverage detected