| Index: test/webkit/arguments-bad-index.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/arguments-bad-index.js
|
| similarity index 81%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/arguments-bad-index.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..a4dd4d53b92078c98c3266c1865bbc152d8c4ec2 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/arguments-bad-index.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."
|
| +"This test checks whether arguments crashes when passed a bad index."
|
| );
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| +function indexArguments(index)
|
| +{
|
| + return arguments[index];
|
| +}
|
|
|
| +shouldBe('indexArguments(1, "a")', '"a"');
|
| +shouldBe('indexArguments("1 ", "a")', 'undefined');
|
| +shouldBe('indexArguments(0xDEADBEEF)', 'undefined');
|
| +shouldBe('indexArguments(0xFFFFFFFF)', 'undefined');
|
|
|
|
|