ObjectHeaderInlining_StFldOpt.js 802 B

12345678910111213141516171819202122232425262728293031
  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 test = false;
  6. function OneProperty(arg0) {
  7. this.prop0 = arg0;
  8. }
  9. var AddMoreProperties = function () {
  10. obj = new OneProperty(3);
  11. if(test){ WScript.Echo("A") };
  12. obj.prop1 = 1;
  13. obj.prop2 = 4;
  14. WScript.Echo(obj.prop0);
  15. WScript.Echo(obj.prop1);
  16. WScript.Echo(obj.prop2);
  17. obj[0];
  18. };
  19. AddMoreProperties();
  20. AddMoreProperties();
  21. AddMoreProperties();