Sign in
webkit
/
WebKit
/
2538ba1dc66c1a9ab694bc167c5d56293dae7e8e
/
.
/
LayoutTests
/
js
/
dom
/
script-tests
/
indexed-setter-on-global-object.js
blob: 67a47bafe2f3b3e18b19182acf0adfcdeba8664e [
file
] [
log
] [
blame
]
description
(
"Tests that creating an indexed setter on the global object doesn't break things."
);
shouldThrowErrorName
(
"this.__defineSetter__(42, function() {})"
,
"TypeError"
);
this
[
42
]
=
"foo"
;
shouldBe
(
"this[42]"
,
"undefined"
);