| 585 | JSValueRef V8JavaScriptContext::newNativeClass(const Ref<RefCountable>& /*classOpaque*/, |
| 586 | const JSClassDefinition& /*classDefinition*/, |
| 587 | JSExceptionTracker& exceptionTracker) { |
| 588 | // TODO: Implement native-class support or Base64/Unicode module fallbacks before enabling V8. |
| 589 | exceptionTracker.onError("Native classes are not supported by V8"); |
| 590 | return JSValueRef(); |
| 591 | } |
| 592 | |
| 593 | JSValueRef V8JavaScriptContext::newObjectFromNativeClass(const Ref<RefCountable>& /*opaque*/, |
| 594 | const JSValue& /*cls*/, |
| 595 | JSExceptionTracker& exceptionTracker) { |
| 596 | exceptionTracker.onError("Native classes are not supported by V8"); |
| 597 | return JSValueRef(); |
| 598 | } |
| 599 | |
| 600 | JSValueRef V8JavaScriptContext::newWeakRef(const JSValue& object, JSExceptionTracker& exceptionTracker) { |
| 601 | v8::HandleScope handleScope(_isolate); |
| 602 | auto indirect = fromValdiJSValueToIndirect(object); |
| 603 | return toUnretainedJSValueRef(indirect); |
| 604 | } |
| 605 | |
| 606 | JSValueRef V8JavaScriptContext::derefWeakRef(const JSValue& weakRef, JSExceptionTracker& exceptionTracker) { |
| 607 | v8::HandleScope handleScope(_isolate); |
| 608 | auto indirect = fromValdiJSValueToIndirect(weakRef); |
| 609 | if (indirect.isEmpty()) { |
| 610 | exceptionTracker.onError("Object cannot be dereferenced"); |
| 611 | return JSValueRef(); |
| 612 | } |
no test coverage detected