source-object-constructor.js (441B)
1 // Copyright 2015 Microsoft Corporation. All rights reserved. 2 // This code is governed by the license found in the LICENSE file. 3 4 /*--- 5 description: > 6 Array.from uses a constructor other than Array. 7 esid: sec-array.from 8 es6id: 22.1.2.1 9 ---*/ 10 11 assert.sameValue( 12 Array.from.call(Object, []).constructor, 13 Object, 14 'The value of Array.from.call(Object, []).constructor is expected to equal the value of Object' 15 ); 16 17 reportCompare(0, 0);