25 lines
639 B
TypeScript
25 lines
639 B
TypeScript
//// [noCrashOnNoLib.ts]
|
|
export function f() {
|
|
let e: {}[];
|
|
while (true) {
|
|
e = [...(e || [])];
|
|
}
|
|
}
|
|
|
|
//// [noCrashOnNoLib.js]
|
|
"use strict";
|
|
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
r[k] = a[j];
|
|
return r;
|
|
};
|
|
exports.__esModule = true;
|
|
function f() {
|
|
var e;
|
|
while (true) {
|
|
e = __spreadArrays((e || []));
|
|
}
|
|
}
|
|
exports.f = f;
|