| 119 | } |
| 120 | |
| 121 | Valdi::JSExceptionTracker exceptionTracker(valdiJsContext); |
| 122 | const auto& referenceInfo = nativeClass->getConstructorReferenceInfo(); |
| 123 | Valdi::JSFunctionNativeCallContext callContext( |
| 124 | valdiJsContext, arguments, static_cast<size_t>(argc), exceptionTracker, referenceInfo); |
| 125 | |
| 126 | auto prototype = JS_GetPropertyStr(context, funcObject, "prototype"); |
| 127 | if (JS_IsException(prototype)) { |
| 128 | return prototype; |
| 129 | } |
| 130 | auto object = JS_NewObjectProtoClass(context, prototype, getWrappedObjectClassDef()->classID); |
no test coverage detected