| 91 | } |
| 92 | |
| 93 | Result<JSValueRef> JSExceptionTracker::toRetainedResult(JSValueRef value) { |
| 94 | if (!*this) { |
| 95 | return extractError(); |
| 96 | } |
| 97 | return _jsContext.ensureRetainedValue(std::move(value)); |
| 98 | } |
| 99 | |
| 100 | void JSExceptionTracker::storeException(const JSValue& exception) { |
| 101 | storeException(JSValueRef::makeRetained(_jsContext, exception)); |
no test coverage detected