-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: add new.target add-on regression test #9689
Conversation
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
} | ||
} | ||
|
||
assert.ok(new Class().ok); |
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.
Just a suggestion but maybe check new Class() instanceof binding.Class
, too?
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.
Good idea, done. Also fixed the lint warning.
|
||
NODE_MODULE(binding, Initialize) | ||
|
||
} // namespace anonymous |
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.
The linter seems to want anonymous namespace
:P
Add a test that checks that new.target inheritance works when inheriting from a constructor defined in C++. PR-URL: nodejs#9689 Refs: nodejs#9288 Refs: nodejs#9293 Reviewed-By: Anna Henningsen <[email protected]>
2614eca
to
13c4f44
Compare
Add a test that checks that new.target inheritance works when inheriting from a constructor defined in C++. PR-URL: #9689 Refs: #9288 Refs: #9293 Reviewed-By: Anna Henningsen <[email protected]>
@bnoordhuis this is causing failures. Can you manually backport? |
Add a test that checks that new.target inheritance works when inheriting from a constructor defined in C++. PR-URL: #9689 Refs: #9288 Refs: #9293 Reviewed-By: Anna Henningsen <[email protected]>
@thealphanerd The v6.x backport is at #9293 (so I’m removing lts-watch-v6.x) and I am not sure this is feasible for v4.x at all |
Add a test that checks that new.target inheritance works when inheriting from a constructor defined in C++. PR-URL: #9689 Refs: #9288 Refs: #9293 Reviewed-By: Anna Henningsen <[email protected]>
Add a test that checks that new.target inheritance works when inheriting from a constructor defined in C++. PR-URL: nodejs#9689 Refs: nodejs#9288 Refs: nodejs#9293 Reviewed-By: Anna Henningsen <[email protected]>
Add a test that checks that new.target inheritance works when inheriting from a constructor defined in C++. PR-URL: #9689 Refs: #9288 Refs: #9293 Reviewed-By: Anna Henningsen <[email protected]>
Add a test that checks that new.target inheritance works when inheriting
from a constructor defined in C++.
Refs: #9288
Refs: #9293
CI: https://ci.nodejs.org/job/node-test-pull-request/4900/