blob: c8e395fb131f62adce60772c8d62e48e7d7cb126 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var pass = true;
function test() {
var c = function () {};
function shapeyConstructor()
{
for (var x in Array(c = '', ...NaN, c = '')) {}
}
try
{
var f = shapeyConstructor();
} catch (e) {}
if(typeof c !== "string")
{
print("FAIL: type of is "+typeof c);
pass = false;
}
}
test();
test();
test();
pass ? print("PASS") : print("FAIL");