test119.js 552 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. function test0(a) {
  6. a[0]();
  7. }
  8. var a = new Uint32Array(1);
  9. try {
  10. test0(a);
  11. }
  12. catch(ex) {
  13. }
  14. try {
  15. test0(a);
  16. }
  17. catch(ex) {
  18. WScript.Echo(ex.message);
  19. }