diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/from/source-object-constructor.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/from/source-object-constructor.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Array/from/source-object-constructor.js b/js/src/tests/test262/built-ins/Array/from/source-object-constructor.js new file mode 100644 index 0000000000..7a0d1db9f1 --- /dev/null +++ b/js/src/tests/test262/built-ins/Array/from/source-object-constructor.js @@ -0,0 +1,17 @@ +// Copyright 2015 Microsoft Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +description: > + Array.from uses a constructor other than Array. +esid: sec-array.from +es6id: 22.1.2.1 +---*/ + +assert.sameValue( + Array.from.call(Object, []).constructor, + Object, + 'The value of Array.from.call(Object, []).constructor is expected to equal the value of Object' +); + +reportCompare(0, 0); |