Sign in
webkit
/
WebKit
/
fd10f760421d170d3c112a898afd0d8277e3af75
/
.
/
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"
);