| 524 | |
| 525 | JSValueRef V8JavaScriptContext::newWeakRef(const JSValue& object, JSExceptionTracker& exceptionTracker) { |
| 526 | v8::HandleScope handleScope(_isolate); |
| 527 | auto indirect = fromValdiJSValueToIndirect(object); |
| 528 | return toUnretainedJSValueRef(indirect); |
| 529 | } |
| 530 | |
| 531 | JSValueRef V8JavaScriptContext::derefWeakRef(const JSValue& weakRef, JSExceptionTracker& exceptionTracker) { |
| 532 | v8::HandleScope handleScope(_isolate); |
| 533 | auto indirect = fromValdiJSValueToIndirect(weakRef); |
| 534 | if (indirect.isEmpty()) { |
no test coverage detected