blob: 187623cd85007db7c802f1bdb0d7983f9dd3ae9d [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.
//-------------------------------------------------------------------------------------------------------
function test0(a) {
return new Cons(a);
function Cons(a) {
this.a = (a << 1) + 2;
}
}
WScript.Echo(test0(0x3fffffff).a);
function test1(a) {
return new Cons(a);
function Cons(a) {
return { a: (a << 1) + 2 };
}
}
WScript.Echo(test0(0x3fffffff).a);