mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-20 03:59:57 +08:00
补环境
This commit is contained in:
parent
446fafd532
commit
353648d3b3
@ -39,6 +39,8 @@ https://github.com/patriksimek/vm2
|
||||
// 需要补的window环境
|
||||
const windowfile = `${__dirname}/window.js`;
|
||||
const vm = new VM();
|
||||
|
||||
//VMScript调试
|
||||
const script = new VMScript(fs.readFileSync(windowfile)+fs.readFileSync(file), "我正在调试的代码");
|
||||
vm.run(script);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user