| 109 | } |
| 110 | |
| 111 | inline v8::Local<v8::String> fromValdiJSPropertyName(v8::Isolate* isolate, |
| 112 | const JSPropertyName& value, |
| 113 | JSExceptionTracker& exceptionTracker) { |
| 114 | auto indirect = fromValdiJSPropertyNameToIndirect(value); |
| 115 | auto retval = indirect.get(isolate); |
| 116 | if (retval.IsEmpty() || !retval->IsString()) { |
| 117 | exceptionTracker.onError("Failed to get the underlying key for property name"); |
| 118 | return v8::Local<v8::String>(); |
| 119 | } else { |
| 120 | return v8::Local<v8::String>::Cast(retval); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | inline JSValueRef V8JavaScriptContext::toRetainedJSValueRef(const IndirectV8Persistent& value) { |
| 125 | return JSValueRef::makeRetained(*this, toValdiJSValue(value)); |
no test coverage detected