Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 809c63c

Browse files
fixed BooleanValue() deprecated warnings
1 parent 6f740fa commit 809c63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cc/core/core.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ff_unwrapper(cbArgs[1]->ToObject(Nan::GetCurrentContext()).ToLocalChecked()) = b; \
1616
Nan::AsyncResource resource("opencv4nodejs:Predicate::Constructor"); \
1717
return resource.runInAsyncScope(Nan::GetCurrentContext()->Global(), \
18-
cb, 2, cbArgs).ToLocalChecked()->BooleanValue(); \
18+
cb, 2, cbArgs).ToLocalChecked()->ToBoolean(Nan::GetCurrentContext()).ToLocalChecked()->Value(); \
1919
} \
2020
}
2121

0 commit comments

Comments
 (0)