| 1 |
function runNearStackLimit(f) { |
| 2 |
function t() { |
| 3 |
try { |
| 4 |
return t(); |
| 5 |
} catch (e) { |
| 6 |
return f(); |
| 7 |
} |
| 8 |
} |
| 9 |
return t() |
| 10 |
} |
| 11 |
var helpers = function helpers() { |
| 12 |
return { |
| 13 |
get isCompatVersion9() { |
| 14 |
} }; |
| 15 |
}(); |
| 16 |
var testRunner = function testRunner() { |
| 17 |
var testRunner = { |
| 18 |
asyncTestHasNoErr: function asyncTestHasNoErr() { |
| 19 |
}, |
| 20 |
runTests: function runTests(testsToRun) { |
| 21 |
for (var i in testsToRun) { |
| 22 |
this.runTest(i, testsToRun[i].name, testsToRun[i].body); |
| 23 |
} |
| 24 |
}, |
| 25 |
runTest: function runTest(testIndex, testName, testBody) { |
| 26 |
try { |
| 27 |
testBody(); |
| 28 |
} catch (ex) { |
| 29 |
} |
| 30 |
}, |
| 31 |
asyncTestBegin: function asyncTestBegin() { |
| 32 |
return explicitAsyncTestExit ? ` |
| 33 |
` : ` |
| 34 |
`; |
| 35 |
} }; |
| 36 |
return testRunner; |
| 37 |
}(); |
| 38 |
var assert = function assert() { |
| 39 |
var validate = function validate() { |
| 40 |
}; |
| 41 |
return { |
| 42 |
areEqual: function areEqual() { |
| 43 |
validate( message); |
| 44 |
}, |
| 45 |
areNotEqual: function areNotEqual() { |
| 46 |
} }; |
| 47 |
}(); |
| 48 |
class __c_19 { |
| 49 |
constructor() { |
| 50 |
this.foo = 'SimpleParent'; |
| 51 |
} |
| 52 |
} |
| 53 |
var __v_2735 = [{ |
| 54 |
body: function () { |
| 55 |
class __c_23 extends __c_19 { |
| 56 |
constructor() { |
| 57 |
super() |
| 58 |
} |
| 59 |
} |
| 60 |
let __v_2738 = new __c_23(); |
| 61 |
} |
| 62 |
}, { |
| 63 |
body: function () { |
| 64 |
class __c_26 extends __c_19 { |
| 65 |
constructor() { |
| 66 |
super(); |
| 67 |
} |
| 68 |
} |
| 69 |
let __v_2739 = new __c_26(); |
| 70 |
} |
| 71 |
}, { |
| 72 |
body: function () { |
| 73 |
class __c_29 extends __c_19 { |
| 74 |
constructor() { |
| 75 |
super() |
| 76 |
} |
| 77 |
} |
| 78 |
let __v_2743 = new __c_29(); |
| 79 |
class __c_30 extends __c_19 { |
| 80 |
constructor() { |
| 81 |
super() |
| 82 |
super(); |
| 83 |
} |
| 84 |
} |
| 85 |
let __v_2746 = new __c_30(); |
| 86 |
} |
| 87 |
}, { |
| 88 |
body: function () { |
| 89 |
class __c_34 extends __c_19 {} |
| 90 |
let __v_2749 = new __c_34(); |
| 91 |
} |
| 92 |
}, { |
| 93 |
body: function () { |
| 94 |
class __c_87 extends __c_19 { |
| 95 |
constructor() { |
| 96 |
try { |
| 97 |
assert.areEqual(); |
| 98 |
} catch (e) {} |
| 99 |
eval('super();') |
| 100 |
} |
| 101 |
} |
| 102 |
function __f_683(__v_2812) { |
| 103 |
__v_2812.foo |
| 104 |
} |
| 105 |
__f_683(new __c_87()) |
| 106 |
runNearStackLimit(() => { |
| 107 |
return __f_683(); |
| 108 |
}) |
| 109 |
} |
| 110 |
}, { |
| 111 |
body: function () { |
| 112 |
} |
| 113 |
}]; |
| 114 |
testRunner.runTests(__v_2735, { |
| 115 |
}); |