constructorConcat.js 656 B

1234567891011121314151617181920
  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 f(arg) {
  6. var i = 0;
  7. while (i < 5) {
  8. i++;
  9. arg += "this_should_not_stay";
  10. }
  11. }
  12. f("Hello");
  13. f(Int8Array);
  14. if (!Int8Array.toString().includes("this_should_not_stay")) {
  15. WScript.Echo("Passed");
  16. }
  17. else {
  18. WScript.Echo("FAILED");
  19. }