bug542360.js 766 B

12345678910111213141516171819202122232425
  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(a, b, a) {
  6. var x = function () {
  7. eval('');
  8. };
  9. var success = true;
  10. if (a !== 3) {
  11. WScript.Echo("Failed: a !== 3, a: " + a);
  12. success = false;
  13. }
  14. if (b !== 2) {
  15. WScript.Echo("Failed: b !== 2, b: " + b);
  16. success = false;
  17. }
  18. return success;
  19. }
  20. if (test(1, 2, 3)) {
  21. WScript.Echo("Pass");
  22. }