ObjectHeaderInlining_otherInstrs.js 814 B

12345678910111213141516171819202122232425262728
  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()
  6. {
  7. this.a = 1;
  8. this.b = 2;
  9. return undefined;
  10. }
  11. var obj = new test0();
  12. obj = new test0();
  13. obj = new test0();
  14. obj = new test0();
  15. obj = new test0();
  16. WScript.Echo(obj.a);
  17. WScript.Echo(obj.b);
  18. obj.a = 10; //Fixed Field should have got invalidated at this point.
  19. obj.b = 20; //Fixed Field should have got invalidated at this point.
  20. //Print new values
  21. WScript.Echo(obj.a);
  22. WScript.Echo(obj.b);