| 79 | JSObjectRef function, |
| 80 | JSObjectRef /*thisObject*/, |
| 81 | size_t /*argumentCount*/, |
| 82 | const JSValueRef[] /*arguments*/, |
| 83 | JSValueRef* exception) { |
| 84 | auto functionData = Valdi::Ref(getAttachedNativeClassFunctionData(function)); |
| 85 | auto& jsContext = functionData->jsContext; |
| 86 | Valdi::JSExceptionTracker exceptionTracker(jsContext); |
| 87 | exceptionTracker.onError("Native class constructor must be called with new"); |
| 88 | return onJsCallError(ctx, exceptionTracker, exception); |
| 89 | } |
| 90 | |
| 91 | static JSObjectRef callNativeClassConstructor(JSContextRef ctx, |
| 92 | JSObjectRef constructorObject, |
| 93 | size_t argumentCount, |
| 94 | const JSValueRef arguments[], |
| 95 | JSValueRef* exception) { |
no outgoing calls
no test coverage detected