| 104 | if (jsException != nullptr) { |
| 105 | exceptionTracker.storeException(Valdi::JSValueRef::makeRetained( |
| 106 | jsContext, toValdiJSValue(JSCoreRef(jsException, JSValueGetType(ctx, jsException))))); |
| 107 | return onJsConstructorError(exceptionTracker, exception); |
| 108 | } |
| 109 | auto prototypeObject = JSValueToObject(ctx, prototypeValue, &jsException); |
| 110 | if (jsException != nullptr) { |
| 111 | exceptionTracker.storeException(Valdi::JSValueRef::makeRetained( |
| 112 | jsContext, toValdiJSValue(JSCoreRef(jsException, JSValueGetType(ctx, jsException))))); |
| 113 | return onJsConstructorError(exceptionTracker, exception); |
| 114 | } |
| 115 | |
| 116 | auto object = JSObjectMake(ctx, getWrappedObjectClassRef(), nullptr); |
no test coverage detected