singleuse.js 858 B

1234567891011121314151617181920212223242526272829303132
  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. var litObj0;
  6. var litObj1;
  7. function test0(){
  8. var obj1 = {};
  9. //Snippet 2: more arguments than formal parameters
  10. obj1.prop0 = (function(x) {
  11. var fPolyProp = function (o) {
  12. if (o!==undefined) {
  13. WScript.Echo(o.prop0 + ' ' + o.prop1 + ' ' + o.prop2);
  14. }
  15. }
  16. fPolyProp(litObj0);
  17. fPolyProp(litObj1);
  18. return 1 + x;
  19. })(1.1,1,1.1);
  20. };
  21. // generate profile
  22. test0();
  23. // run JITted code
  24. runningJITtedCode = true;
  25. test0();