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: add new.target add-on regression test #9689

Merged
merged 1 commit into from
Nov 21, 2016

Conversation

bnoordhuis
Copy link
Member

@bnoordhuis bnoordhuis commented Nov 18, 2016

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/

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Nov 18, 2016
@addaleax addaleax added the addons Issues and PRs related to native addons. label Nov 18, 2016
Copy link
Member

@addaleax addaleax left a 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);
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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 <anna@addaleax.net>
@bnoordhuis bnoordhuis closed this Nov 21, 2016
@bnoordhuis bnoordhuis deleted the new-target-addon-test branch November 21, 2016 13:37
@bnoordhuis bnoordhuis merged commit 13c4f44 into nodejs:master Nov 21, 2016
addaleax pushed a commit that referenced this pull request Nov 22, 2016
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 <anna@addaleax.net>
@MylesBorins
Copy link
Contributor

@bnoordhuis this is causing failures. Can you manually backport?

MylesBorins pushed a commit that referenced this pull request Dec 20, 2016
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 <anna@addaleax.net>
@addaleax
Copy link
Member

@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

MylesBorins pushed a commit that referenced this pull request Dec 21, 2016
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 <anna@addaleax.net>
@MylesBorins MylesBorins mentioned this pull request Dec 21, 2016
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request Mar 2, 2017
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 <anna@addaleax.net>
MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
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 <anna@addaleax.net>
@MylesBorins MylesBorins mentioned this pull request Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addons Issues and PRs related to native addons. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants