test141.js 673 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 test0(o) {
  6. o.p0 = o.p0 ? o.p0.replace(/z/, "z") : test0a();
  7. o.p1 = o.p1 || "z";
  8. o.p2 = 1;
  9. return o;
  10. }
  11. function test0a() {
  12. try { } catch(ex) { }
  13. };
  14. test0({ p0: "a", p1: "b" });
  15. test0({ p0: "a", p1: "b" });
  16. test0({ p0: "a", p1: "b" });
  17. WScript.Echo("pass");