diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/of/length.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/of/length.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Array/of/length.js b/js/src/tests/test262/built-ins/Array/of/length.js new file mode 100644 index 0000000000..62c1110d83 --- /dev/null +++ b/js/src/tests/test262/built-ins/Array/of/length.js @@ -0,0 +1,23 @@ +// Copyright (C) 2015 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-array.of +description: > + Array.of.length value and property descriptor +info: | + Array.of ( ...items ) + + The length property of the of function is 0. +includes: [propertyHelper.js] +---*/ + +assert.sameValue( + Array.of.length, 0, + 'The value of `Array.of.length` is `0`' +); + +verifyNotEnumerable(Array.of, 'length'); +verifyNotWritable(Array.of, 'length'); +verifyConfigurable(Array.of, 'length'); + +reportCompare(0, 0); |