Skip to content

Commit

Permalink
Fix XPathEvaluator constructor test (web-platform-tests#3803); r=Ms2ger
Browse files Browse the repository at this point in the history
Fix XPathEvaluator constructor test as it was expecting that the constructor
can be called without 'new'. Firefox / Chrome and Safari all do not allow
this.
  • Loading branch information
Chris Dumez authored and Ms2ger committed Sep 23, 2016
1 parent 1d6db82 commit 75f9d2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions domxpath/evaluator-constructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
assert_true(x instanceof XPathEvaluator);
}, "Constructor with 'new'");
test(function() {
var x = XPathEvaluator();
assert_true(x instanceof XPathEvaluator);
assert_throws(new TypeError(), "var x = XPathEvaluator()");
}, "Constructor without 'new'");
</script>

0 comments on commit 75f9d2e

Please sign in to comment.