| 53 | } |
| 54 | |
| 55 | inline void setException(JSC::ExecState* exec, JSValueRef* returnedExceptionRef, JSC::JSValue exception) |
| 56 | { |
| 57 | if (returnedExceptionRef) |
| 58 | *returnedExceptionRef = toRef(exec, exception); |
| 59 | #if ENABLE(REMOTE_INSPECTOR) |
| 60 | VM& vm = exec->vm(); |
| 61 | vm.vmEntryGlobalObject(exec)->inspectorController().reportAPIException(exec, JSC::Exception::create(vm, exception)); |
| 62 | #endif |
| 63 | } |
| 64 | |
| 65 | #endif /* APIUtils_h */ |
no test coverage detected