test125.js 678 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 test0(f, f2) {
  6. return f = f(), f2 = f2();
  7. }
  8. test0(f, f);
  9. function test1(f, f2) {
  10. return f = new f(), f2 = new f2();
  11. }
  12. test1(f, f);
  13. function test2(f, f2) {
  14. return f = new f(0), f2 = new f2(0);
  15. }
  16. test2(f, f);
  17. function f() {
  18. return 0;
  19. }
  20. WScript.Echo("pass");