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