test_bug1123875.html (457B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Test for Bug 1123875</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <div id=log></div> 7 <script> 8 /* global test, assert_throws */ 9 test(() => { 10 assert_throws(new TypeError, () => { 11 "use strict"; 12 document.childNodes.length = 0; 13 }); 14 }, "setting a readonly attribute on a proxy in strict mode should throw a TypeError"); 15 </script>