fromCodePoint.js 594 B

123456789101112131415161718
  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 f() {
  6. var var_0 = new Array(1024);
  7. for (var var_1 = 0; ; var_1 += 1024) {
  8. var_0[var_1] = String.fromCodePoint(var_1);
  9. }
  10. }
  11. try {
  12. f();
  13. }
  14. catch(e) {
  15. WScript.Echo("pass");
  16. }