| 82 | } |
| 83 | |
| 84 | void JSExceptionTracker::storeException(JSValueRef&& exception) { |
| 85 | assertEmpty(); |
| 86 | _exception = std::move(exception); |
| 87 | if (!_exception.isRetained()) { |
| 88 | _exception = JSValueRef::makeRetained(_jsContext, _exception.get()); |
| 89 | } |
| 90 | setEmpty(false); |
| 91 | } |
| 92 | |
| 93 | Result<JSValueRef> JSExceptionTracker::toRetainedResult(JSValueRef value) { |
| 94 | if (!*this) { |
no test coverage detected