We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8208c55 commit 2c4ee8aCopy full SHA for 2c4ee8a
test/cpp/weak.cpp
@@ -15,6 +15,7 @@ static Persistent<v8::Function> cb;
15
16
void weakCallback(
17
const WeakCallbackInfo<int> &data) { // NOLINT(runtime/references)
18
+ HandleScope scope;
19
int *parameter = data.GetParameter();
20
v8::Local<v8::Value> val = New(*parameter);
21
async_resource->runInAsyncScope(
test/cpp/weak2.cpp
@@ -14,6 +14,7 @@ static AsyncResource* async_resource;
14
static Persistent<v8::Function> cb;
int *parameter = static_cast<int*>(data.GetInternalField(0));
0 commit comments