summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/length/15.4.5.1-3.d-2.js
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2017-04-11 00:17:34 -0400
committerLeo Balter <leonardo.balter@gmail.com>2017-04-11 02:33:44 -0400
commite98ccd13efb75f32d957f880ebfa0b380b80c78d (patch)
treecf2982512029bae748ad32f07a155c6c2ece13b6 /test/built-ins/Array/length/15.4.5.1-3.d-2.js
parentbcb7651529bc641bf7bfe1c62efcd7b5bcb5b2ab (diff)
downloadqtdeclarative-testsuites-e98ccd13efb75f32d957f880ebfa0b380b80c78d.tar.gz
Move tests for Array `length` to a proper folder
Diffstat (limited to 'test/built-ins/Array/length/15.4.5.1-3.d-2.js')
-rw-r--r--test/built-ins/Array/length/15.4.5.1-3.d-2.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/built-ins/Array/length/15.4.5.1-3.d-2.js b/test/built-ins/Array/length/15.4.5.1-3.d-2.js
new file mode 100644
index 000000000..e5ecd52d0
--- /dev/null
+++ b/test/built-ins/Array/length/15.4.5.1-3.d-2.js
@@ -0,0 +1,14 @@
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+es5id: 15.4.5.1-3.d-2
+description: >
+ Throw RangeError if attempt to set array length property to
+ 4294967297 (1+2**32)
+---*/
+
+
+assert.throws(RangeError, function() {
+ [].length = 4294967297 ;
+});