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

68
test/fixtures/console/2100bytes.js vendored Normal file
View File

@ -0,0 +1,68 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
require('../../common');
console.log([
'_______________________________________________50',
'______________________________________________100',
'______________________________________________150',
'______________________________________________200',
'______________________________________________250',
'______________________________________________300',
'______________________________________________350',
'______________________________________________400',
'______________________________________________450',
'______________________________________________500',
'______________________________________________550',
'______________________________________________600',
'______________________________________________650',
'______________________________________________700',
'______________________________________________750',
'______________________________________________800',
'______________________________________________850',
'______________________________________________900',
'______________________________________________950',
'_____________________________________________1000',
'_____________________________________________1050',
'_____________________________________________1100',
'_____________________________________________1150',
'_____________________________________________1200',
'_____________________________________________1250',
'_____________________________________________1300',
'_____________________________________________1350',
'_____________________________________________1400',
'_____________________________________________1450',
'_____________________________________________1500',
'_____________________________________________1550',
'_____________________________________________1600',
'_____________________________________________1650',
'_____________________________________________1700',
'_____________________________________________1750',
'_____________________________________________1800',
'_____________________________________________1850',
'_____________________________________________1900',
'_____________________________________________1950',
'_____________________________________________2000',
'_____________________________________________2050',
'_____________________________________________2100',
].join('\n'));

View File

@ -0,0 +1,42 @@
_______________________________________________50
______________________________________________100
______________________________________________150
______________________________________________200
______________________________________________250
______________________________________________300
______________________________________________350
______________________________________________400
______________________________________________450
______________________________________________500
______________________________________________550
______________________________________________600
______________________________________________650
______________________________________________700
______________________________________________750
______________________________________________800
______________________________________________850
______________________________________________900
______________________________________________950
_____________________________________________1000
_____________________________________________1050
_____________________________________________1100
_____________________________________________1150
_____________________________________________1200
_____________________________________________1250
_____________________________________________1300
_____________________________________________1350
_____________________________________________1400
_____________________________________________1450
_____________________________________________1500
_____________________________________________1550
_____________________________________________1600
_____________________________________________1650
_____________________________________________1700
_____________________________________________1750
_____________________________________________1800
_____________________________________________1850
_____________________________________________1900
_____________________________________________1950
_____________________________________________2000
_____________________________________________2050
_____________________________________________2100

5
test/fixtures/console/console.js vendored Normal file
View File

@ -0,0 +1,5 @@
'use strict';
require('../../common');
console.trace('foo');

10
test/fixtures/console/console.snapshot vendored Normal file
View File

@ -0,0 +1,10 @@
Trace: foo
at *
at *
at *
at *
at *
at *
at *
at *
at *

View File

@ -0,0 +1,34 @@
'use strict';
// Copy console accessor because requiring ../common touches it
const consoleDescriptor = Object.getOwnPropertyDescriptor(global, 'console');
Object.defineProperty(global, 'console', {
configurable: true,
writable: true,
value: {},
});
require('../../common');
// This test checks that, if Node cannot put together the `console` object
// because it is low on stack space while doing so, it can succeed later
// once the stack has unwound a little, and `console` is in a usable state then.
let compiledConsole;
function a() {
try {
return a();
} catch (e) {
compiledConsole = consoleDescriptor.value;
if (compiledConsole.log) {
// Using `console.log` itself might not succeed yet, but the code for it
// has been compiled.
} else {
throw e;
}
}
}
a();
compiledConsole.log('Hello, World!');

View File

@ -0,0 +1 @@
Hello, World!

5
test/fixtures/console/force_colors.js vendored Normal file
View File

@ -0,0 +1,5 @@
'use strict';
require('../../common');
console.log(123, 'foo', { bar: 'baz' });

View File

@ -0,0 +1 @@
123 foo { bar: 'baz' }

25
test/fixtures/console/hello_world.js vendored Normal file
View File

@ -0,0 +1,25 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
require('../../common');
console.log('hello world');

View File

@ -0,0 +1 @@
hello world

41
test/fixtures/console/stack_overflow.js vendored Normal file
View File

@ -0,0 +1,41 @@
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
require('../../common');
Error.stackTraceLimit = 0;
console.error('before');
// Invalidate elements protector to force slow-path.
// The fast-path of JSON.stringify is iterative and won't throw.
Array.prototype[2] = 'foo';
// Trigger stack overflow by stringifying a deeply nested array.
// eslint-disable-next-line no-sparse-arrays
let array = [,];
for (let i = 0; i < 10000; i++)
array = [array];
JSON.stringify(array);
console.error('after');

View File

@ -0,0 +1,8 @@
before
*test*fixtures*console*stack_overflow.js:*
JSON.stringify(array);
^
[RangeError: Maximum call stack size exceeded]
Node.js *