Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

24
test/fixtures/snapshot/error-stack.js vendored Normal file
View File

@ -0,0 +1,24 @@
const {
setDeserializeMainFunction,
} = require('v8').startupSnapshot;
console.log(`During snapshot building, Error.stackTraceLimit =`, Error.stackTraceLimit);
console.log(getError('During snapshot building', 30));
setDeserializeMainFunction(() => {
console.log(`After snapshot deserialization, Error.stackTraceLimit =`, Error.stackTraceLimit);
console.log(getError('After snapshot deserialization', 30));
});
function getError(message, depth) {
let counter = 1;
function recurse() {
if (counter++ < depth) {
return recurse();
}
const error = new Error(message);
return error.stack;
}
return recurse();
}