proxybugWithproto.js 721 B

12345678910111213141516171819
  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. // -nonative
  6. // -maxsimplejitruncount:1 -maxinterpretcount:1
  7. var arrObj0 = {};
  8. var uic8 = new Uint8ClampedArray(256);
  9. var proxyHandler = {};
  10. for (var _strvar28 in uic8) {
  11. arrObj0.__proto__ = Array;
  12. switch ('(') {
  13. case '(':
  14. case 1:
  15. arrObj0 = new Proxy(arrObj0, proxyHandler);
  16. }
  17. }
  18. print('PASS');