JavaScript: Make InconsistentNew give fewer results.

This commit is contained in:
Max Schaefer
2018-11-30 16:13:46 +00:00
parent b17518a5eb
commit 3351650895
2 changed files with 17 additions and 2 deletions

View File

@@ -63,3 +63,6 @@ C(); // NOT OK, but flagged by IllegalInvocation
new A(42);
A.call({}, 23);
})();
new Point(42, 23); // NOT OK, but not flagged since line 6 above was already flagged
Point(56, 72); // NOT OK, but not flagged since line 7 above was already flagged