Commit e3ea2a4
test: check that this != new.target in addon
Add two checks that are there for expository reasons as much as they are
sanity checks.
PR-URL: #15681
Refs: nodejs/node-addon-api#142
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent e865fcb commit e3ea2a4Copy full SHA for e3ea2a4
File tree
Expand file treeCollapse file tree
1 file changed
+5
-1
lines changedOpen diff view settings
Filter options
- test/addons/new-target
Expand file treeCollapse file tree
1 file changed
+5
-1
lines changedOpen diff view settings
Collapse file
test/addons/new-target/binding.cc
Copy file name to clipboardExpand all lines: test/addons/new-target/binding.cc+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
7 | 11 | |
8 | 12 | |
9 | 13 | |
|
0 commit comments