We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8da0f6 commit e1d6902Copy full SHA for e1d6902
Sources/CV8/wrappers.cpp
@@ -129,16 +129,15 @@ extern "C" {
129
Context::Scope context_scope(context);
130
Local<String> source = String::NewFromUtf8(isolate, scriptPtr);
131
Local<Script> script = Script::Compile(source);
132
- MaybeLocal<Value> result = script->Run(context);
+ Local<Value> result = script->Run();
133
134
if (result.IsEmpty()) {
135
if (exception != nullptr) {
136
*exception = new Global<Value>(isolate, trycatch.Exception());
137
}
138
return nullptr;
139
140
- auto local = result.ToLocalChecked();
141
- return new Global<Value>(isolate, local);
+ return new Global<Value>(isolate, result);
142
143
144
void disposeValue(void* pointer) {
0 commit comments