| 1013 | } |
| 1014 | |
| 1015 | inline MaybeLocal<v8::Value> RunScript( |
| 1016 | v8::Local<UnboundScript> script |
| 1017 | ) { |
| 1018 | v8::Isolate *isolate = v8::Isolate::GetCurrent(); |
| 1019 | v8::EscapableHandleScope scope(isolate); |
| 1020 | return scope.Escape(script->BindToCurrentContext() |
| 1021 | ->Run(isolate->GetCurrentContext()) |
| 1022 | .FromMaybe(v8::Local<v8::Value>())); |
| 1023 | } |
| 1024 | |
| 1025 | inline MaybeLocal<v8::Value> RunScript( |
| 1026 | v8::Local<BoundScript> script |
no test coverage detected