argument_escape.js 564 B

12345678910111213141516171819
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function test(param)
  6. {
  7. var l = param;
  8. param = function() { return l; }
  9. return arguments;
  10. }
  11. WScript.Echo(test("test1")[0]());
  12. WScript.Echo(test("test2")[0]());