| 96 | } |
| 97 | |
| 98 | inline v8::Local<v8::Value> fromValdiJSValue(v8::Isolate* isolate, |
| 99 | const JSValue& jsValue, |
| 100 | JSExceptionTracker& exceptionTracker) { |
| 101 | const IndirectV8Persistent indirect = fromValdiJSValueToIndirect(jsValue); |
| 102 | const v8::Local<v8::Value> retval = indirect.get(isolate); |
| 103 | if (retval.IsEmpty()) { |
| 104 | exceptionTracker.onError("Provided JSValue does not contain an underlying value"); |
| 105 | return v8::Local<v8::Value>(); |
| 106 | } else { |
| 107 | return retval; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | inline v8::Local<v8::String> fromValdiJSPropertyName(v8::Isolate* isolate, |
| 112 | const JSPropertyName& value, |
no test coverage detected