Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2916250
test_jit_missing_arg_normalization.cjs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1002 B
Referenced Files
None
Subscribers
None
test_jit_missing_arg_normalization.cjs
View Options
let failed = 0;
function SourceLike(aLine, aColumn, aSource, aChunks, aName) {
this.children = [];
this.line = aLine == null ? null : aLine;
this.column = aColumn == null ? null : aColumn;
this.source = aSource == null ? null : aSource;
this.name = aName == null ? null : aName;
if (aChunks != null) this.add(aChunks);
}
SourceLike.prototype.add = function add(aChunk) {
if (Array.isArray(aChunk)) {
aChunk.forEach(function (chunk) {
this.add(chunk);
}, this);
return;
}
if (typeof aChunk === "string") {
this.children.push(aChunk);
return;
}
throw new Error("unexpected chunk type: " + typeof aChunk);
};
const driver = {
merge: function merge() {
for (let i = 0; i < 3000; i++) {
const s = new SourceLike(1, 2, 3);
s.add(["x"]);
}
},
};
try {
driver.merge();
} catch (e) {
failed++;
console.log("fail:", e && e.message ? e.message : e);
}
if (failed > 0) throw new Error("test_jit_missing_arg_normalization failed");
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Thu, Mar 26, 4:46 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
511784
Default Alt Text
test_jit_missing_arg_normalization.cjs (1002 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment