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

5
test/fixtures/debugger/alive.js vendored Normal file
View File

@ -0,0 +1,5 @@
let x = 0;
function heartbeat() {
++x;
}
setInterval(heartbeat, 50);

30
test/fixtures/debugger/backtrace.js vendored Normal file
View File

@ -0,0 +1,30 @@
const { exports: moduleScoped } = module;
function topFn(a, b = false) {
const l1 = a;
let t = typeof l1;
var v = t.length;
debugger;
return b || t || v || moduleScoped;
}
class Ctor {
constructor(options) {
this.options = options;
}
m() {
const mLocal = this.options;
topFn(this);
return mLocal;
}
}
(function () {
const theOptions = { x: 42 };
const arr = [theOptions];
arr.forEach(options => {
const obj = new Ctor(options);
return obj.m();
});
}());

16
test/fixtures/debugger/break.js vendored Normal file
View File

@ -0,0 +1,16 @@
const x = 10;
let name = 'World';
name = 'Robin';
function sayHello() {
if (x > 0) {
console.log(`Hello ${name}`);
}
}
sayHello();
debugger;
setTimeout(sayHello, 10);
function otherFunction() {
console.log('x = %d', x);
}
setTimeout(otherFunction, 50);

5
test/fixtures/debugger/cjs/index.js vendored Normal file
View File

@ -0,0 +1,5 @@
const forty = 40;
const { add } = require('./other');
const sum = add(forty, 2);
module.exports = sum;

3
test/fixtures/debugger/cjs/other.js vendored Normal file
View File

@ -0,0 +1,3 @@
exports.add = function add(a, b) {
return a + b;
};

0
test/fixtures/debugger/empty.js vendored Normal file
View File

10
test/fixtures/debugger/exceptions.js vendored Normal file
View File

@ -0,0 +1,10 @@
let error = null;
try {
throw new Error('Caught');
} catch (e) {
error = e;
}
if (error) {
throw new Error('Uncaught');
}

3
test/fixtures/debugger/three-lines.js vendored Normal file
View File

@ -0,0 +1,3 @@
let x = 1;
x = x + 1;
module.exports = x;

20
test/fixtures/debugger/twenty-lines.js vendored Normal file
View File

@ -0,0 +1,20 @@
let x = 0;
x = 1;
x = 2;
x = 3;
x = 4;
x = 5;
x = 6;
x = 7;
x = 8;
x = 9;
x = 10;
x = 11;
x = 12;
x = 13;
x = 14;
x = 15;
x = 16;
x = 17;
x = 18;
module.exports = x;

2
test/fixtures/debugger/use-strict.js vendored Normal file
View File

@ -0,0 +1,2 @@
'use strict';
console.log('first real line');