gecko-dev/dom/bindings/test/test_bug1123875.html
Jason Orendorff e55a1c46a2 Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv.
--HG--
extra : rebase_source : 6ed902dfed6a7678f813fc21a4affef798484f1a
extra : source : 06dbe25231c283191c1cc4fea66c1c76add2c91c
2015-03-26 06:13:18 -05:00

15 lines
424 B
HTML

<!doctype html>
<meta charset=utf-8>
<title>Test for Bug 1123875</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(() => {
assert_throws(new TypeError, () => {
"use strict";
document.childNodes.length = 0;
});
}, "setting a readonly attribute on a proxy in strict mode should throw a TypeError");
</script>