classes_bug_OS_7100885.js 670 B

1234567891011121314151617181920
  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. // OS 7100885: With -maxsimplejitruncount:4 -maxinterpretcount:4, crashes due to incorrect profile data
  6. class class2 { }
  7. for (var i = 0; i < 10; i++) {
  8. class class8 extends class2 {
  9. constructor() {
  10. super();
  11. class2 = Boolean;
  12. }
  13. }
  14. new class8()
  15. new class8()
  16. }
  17. print('pass');