Introduce CallJS and corresponding PERFORM_LIKE_GARBAGE flag

This commit is contained in:
Alex Hultman
2020-01-15 18:19:47 +01:00
parent 68fde105e6
commit df4aeb8274
7 changed files with 32 additions and 14 deletions

View File

@@ -28,6 +28,7 @@ struct HttpRequestWrapper {
for (auto p : *req) {
Local<Value> argv[] = {String::NewFromUtf8(isolate, p.first.data(), NewStringType::kNormal, p.first.length()).ToLocalChecked(),
String::NewFromUtf8(isolate, p.second.data(), NewStringType::kNormal, p.second.length()).ToLocalChecked()};
/* This one is also called from JS so no need for CallJS */
cb->Call(isolate->GetCurrentContext(), isolate->GetCurrentContext()->Global(), 2, argv).IsEmpty();
}
}