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

26
test/fixtures/cycles/folder/foo.js vendored Normal file
View File

@ -0,0 +1,26 @@
// 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.
const root = require('./../root');
exports.hello = function() {
return root.calledFromFoo();
};

30
test/fixtures/cycles/root.js vendored Normal file
View File

@ -0,0 +1,30 @@
// 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.
const foo = exports.foo = require('./folder/foo');
exports.hello = 'hello';
exports.sayHello = function() {
return foo.hello();
};
exports.calledFromFoo = function() {
return exports.hello;
};

1
test/fixtures/cycles/warning-a.js vendored Normal file
View File

@ -0,0 +1 @@
require('./warning-b.js');

3
test/fixtures/cycles/warning-b.js vendored Normal file
View File

@ -0,0 +1,3 @@
const a = require('./warning-a.js');
a.missingPropB;
a[Symbol('someSymbol')];

View File

@ -0,0 +1 @@
require('./warning-esm-half-transpiled-b.js');

View File

@ -0,0 +1,2 @@
const a = require('./warning-esm-half-transpiled-a.js');
a.__esModule;

View File

@ -0,0 +1,2 @@
Object.defineProperty(exports, "__esModule", { value: true });
require('./warning-esm-transpiled-b.js');

View File

@ -0,0 +1 @@
require('./warning-esm-transpiled-a.js').missingPropESM;

View File

@ -0,0 +1,2 @@
module.exports = {};
require('./warning-moduleexports-b.js');

View File

@ -0,0 +1 @@
require('./warning-moduleexports-b.js').missingPropModuleExportsB;

View File

@ -0,0 +1,11 @@
const assert = require('assert');
class Parent {}
class A extends Parent {}
module.exports = A;
require('./warning-moduleexports-class-b.js');
process.nextTick(() => {
assert.strictEqual(module.exports, A);
assert.strictEqual(Object.getPrototypeOf(module.exports), Parent);
});

View File

@ -0,0 +1 @@
require('./warning-moduleexports-class-a.js').missingPropModuleExportsClassB;

View File

@ -0,0 +1,17 @@
module.exports = new Proxy({}, {
get(_target, prop) { throw new Error(`get: ${String(prop)}`); },
getPrototypeOf() { throw new Error('getPrototypeOf'); },
setPrototypeOf() { throw new Error('setPrototypeOf'); },
isExtensible() { throw new Error('isExtensible'); },
preventExtensions() { throw new Error('preventExtensions'); },
getOwnPropertyDescriptor() { throw new Error('getOwnPropertyDescriptor'); },
defineProperty() { throw new Error('defineProperty'); },
has() { throw new Error('has'); },
set() { throw new Error('set'); },
deleteProperty() { throw new Error('deleteProperty'); },
ownKeys() { throw new Error('ownKeys'); },
apply() { throw new Error('apply'); },
construct() { throw new Error('construct'); }
});
require('./warning-skip-proxy-traps-b.js');

View File

@ -0,0 +1,10 @@
const assert = require('assert');
const object = require('./warning-skip-proxy-traps-a.js');
assert.throws(() => {
object.missingPropProxyTrap;
}, {
message: 'get: missingPropProxyTrap',
name: 'Error',
});