Skip to content
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

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/objectwrap_function.cc
Expand Up @@ -36,7 +36,8 @@ class FunctionTest : public Napi::ObjectWrap<FunctionTest> {
};

std::unordered_map<napi_env, Napi::FunctionReference>
FunctionTest::constructors = {};
FunctionTest::constructors =
mhdawson marked this conversation as resolved.
Show resolved Hide resolved
std::unordered_map<napi_env, Napi::FunctionReference>();
Copy link
Member

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

Copy link
Member

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 = {}

mhdawson marked this conversation as resolved.
Show resolved Hide resolved

Napi::Object InitObjectWrapFunction(Napi::Env env) {
Napi::Object exports = Napi::Object::New(env);
Expand Down