| 262 | |
| 263 | void QuickJSJavaScriptContext::setExceptionToTracker(Valdi::JSExceptionTracker& exceptionTracker) { |
| 264 | auto exceptionObject = JS_GetException(_context); |
| 265 | exceptionTracker.storeException(toRetainedJSValueRef(exceptionObject)); |
| 266 | } |
| 267 | |
| 268 | Valdi::JSValueRef QuickJSJavaScriptContext::checkCallAndGetValue(Valdi::JSExceptionTracker& exceptionTracker, |
| 269 | const JSValue& value) { |
| 270 | if (JS_IsException(value) != 0) { |