first_commit

This commit is contained in:
2026-01-12 12:43:50 +01:00
parent c75b3e9563
commit 69e186a7f1
15289 changed files with 1616360 additions and 1944 deletions

24
GTA_P_V2/node_modules/stackback/test.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
var assert = require('assert');
var stackback = require('./');
test('capture', function() {
var err = new Error();
var stack = stackback(err);
assert.equal(stack[0].getFileName(), __filename);
});
// calling stackback on the same error twice should work
test('multiple calls', function() {
var err = new Error();
var stack1 = stackback(err);
var stack2 = stackback(err);
assert.equal(stack1[0].getFileName(), __filename);
assert.deepEqual(stack1, stack2);
});
test('string', function() {
var err = new Error();
stackback(err);
assert.equal(typeof err.stack, 'string');
});