14 Star 0 Fork 0

openKylin/quickjs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.js 971 Bytes
一键复制 编辑 原始数据 按行查看 历史
Koushik Dutta 提交于 4年前 . notes
import {boops} from './test2.js'
boops();
const gg = 9;
function foo (t) {
var a = 55;
var b = 33;
var c = {
d: true,
e: 'hello',
f: 34.55,
};
var arr2 = new Uint8Array(10000);
var arr = [];
for (var i = 0; i < 10000; i++) {
arr.push(i);
arr2[i] = i;
}
function noob() {
console.log('f;asdsad`')
console.log(a);
console.log(t);
console.log('supsups')
console.log('ubgasdsad')
}
noob();
}
function bar() {
foo(3);
console.log('asdsad');
console.log('about to throw!');
try {
throw new Error('whoops');
}
catch (e) {
console.log('caught a whoops');
}
}
class Blub {
constructor() {
this.peeps = 3;
}
jib() {
console.log(this);
bar();
}
}
var blub = new Blub();
blub.jib();
// note that a breakpoint here will not work, tail call breakpoints fail?
blub.jib();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openkylin/quickjs.git
git@gitee.com:openkylin/quickjs.git
openkylin
quickjs
quickjs
main

搜索帮助