| Index: test/webkit/indexed-setter-on-global-object.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/indexed-setter-on-global-object.js
|
| similarity index 86%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/indexed-setter-on-global-object.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..8453206849da92f34684e768e1db297839296620 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/indexed-setter-on-global-object.js
|
| @@ -22,10 +22,16 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| +"Tests that creating an indexed setter on the global object doesn't break things."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +var thingy;
|
|
|
| +this.__defineSetter__(42, function(value) {
|
| + thingy = value;
|
| +});
|
| +
|
| +this[42] = "foo";
|
| +
|
| +shouldBe("thingy", "\"foo\"");
|
|
|
|
|