Revision d273149ec04b974e357473b2849ce6d916b2866c authored by Ms2ger on 21 September 2018, 14:10:07 UTC, committed by Ms2ger on 21 September 2018, 14:21:29 UTC
This ensures they don't show up as [object Object].
1 parent 74377ff
Raw File
evaluator-constructor.html
<!doctype html>
<meta charset=utf-8>
<title>XPathEvaluator constructor</title>
<link rel=help href="http://wiki.whatwg.org/wiki/DOM_XPath">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
  var x = new XPathEvaluator();
  assert_true(x instanceof XPathEvaluator);
}, "Constructor with 'new'");
test(function() {
  assert_throws(new TypeError(), "var x = XPathEvaluator()");
}, "Constructor without 'new'");
</script>
back to top