https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2762f9e510988a8a9936fe8049d0f9ea2ba87be2 authored by James Graham on 30 July 2018, 13:36:45 UTC
Add a directory handler that uses the MANIFEST.json for listings.
Tip revision: 2762f9e
Object.prototype.hasOwnProperty-order.html
<!doctype html>
<title>Object.prototype.hasOwnProperty</title>
<link rel=author href=mailto:Ms2ger@gmail.com title=Ms2ger>
<link rel=help href=http://es5.github.com/#x15.4.4.5>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>

<div id=log></div>
<script>
var test_error = { name: "test" };

test(function() {
  [null, undefined, {}].forEach(function(that) {
    test(function() {
      assert_throws(test_error, function() {
        ({}).hasOwnProperty.call(that, { toString: function() { throw test_error; } });
      });
    });
  });
});
</script>
back to top