| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- function throwFunc() {
- // dummy try-catch so that this function does not get inlined
- try {
- }
- catch (ex) {
- }
- throw "ex" ;
- }
- function caller() {
- throwFunc(w);
- }
- function shapeyConstructor() {
- y = iczqcn;
- }
- function test() {
- for (var w in [1,2]) {
- try {
- new caller();
- } catch (e) {
- }
- }
- }
- function toptest() {
- try {
- test();
- new shapeyConstructor();
- }
- catch (ex) {
- }
- }
- toptest();
- toptest();
- toptest();
- WScript.Echo("PASS");
|