blob: da47306dd420a8a25f4f6849ffbc70a8ab1652e0 [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.
//-------------------------------------------------------------------------------------------------------
WScript.Echo("Setter has 0 arguments:");
try {
eval("var o={set foo(){;}};");
}
catch(e)
{
WScript.Echo(e.message);
}
WScript.Echo("Setter has 1 argument:");
try {
eval("var o={set foo(x){;}};");
}
catch(e)
{
WScript.Echo(e.message);
}
WScript.Echo("Setter has 2 arguments:");
try {
eval("var o={set foo(x,y){;}};");
}
catch(e)
{
WScript.Echo(e.message);
}