| //------------------------------------------------------------------------------------------------------- | |
| // Copyright (C) Microsoft. All rights reserved. | |
| // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | |
| //------------------------------------------------------------------------------------------------------- | |
| var a = [1,2,"check"]; | |
| function bar(){ | |
| return (arguments[0] == 1 && | |
| arguments[1] == 2 && | |
| arguments[2] == "check"); | |
| } | |
| function foo(x,y,z){ | |
| arguments; /**bp:locals(1);evaluate('bar(...arguments)')**/ | |
| }; | |
| foo(...a); | |
| WScript.Echo("pass") | |