PropObjectPointerCopyProp.js 713 B

12345678910111213141516
  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. // - 'a = 1' makes 'a' only available as an int32
  6. // - 'b = a' makes 'b' only available as an int32
  7. // - The use of 'b' in 'b.length' gets copy-propped with 'a', and so it needs to unspecialize 'a'
  8. (function () {
  9. var a = 1;
  10. for(var i = 0; i < 1; i++) {
  11. var b = a;
  12. b.length = 1;
  13. a = 1;
  14. }
  15. })();