-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix compilation problem on debian 8. #1138
Conversation
First pass on CI: |
Second pass on CI: |
test/objectwrap_function.cc
Outdated
@@ -36,7 +36,8 @@ class FunctionTest : public Napi::ObjectWrap<FunctionTest> { | |||
}; | |||
|
|||
std::unordered_map<napi_env, Napi::FunctionReference> | |||
FunctionTest::constructors = {}; | |||
FunctionTest::constructors = | |||
std::unordered_map<napi_env, Napi::FunctionReference>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think just dropping the =
or the = {}
would also do the trick here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I just tested out, removing the = {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Going to land as soon as the github actions complete |
PR-URL: #1138 Reviewed-By: Michael Dawson <[email protected] Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs/node-addon-api#1138 Reviewed-By: Michael Dawson <[email protected] Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs/node-addon-api#1138 Reviewed-By: Michael Dawson <[email protected] Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs/node-addon-api#1138 Reviewed-By: Michael Dawson <[email protected] Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: nodejs/node-addon-api#1138 Reviewed-By: Michael Dawson <[email protected] Reviewed-By: Anna Henningsen <[email protected]>
Fixes #1137