mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 11:45:58 +08:00
add
This commit is contained in:
parent
55d16d530f
commit
212bb94e0b
@ -32821,4 +32821,14 @@ function muti_process_obdefusion(jscode){
|
||||
traverse(ast, {CatchClause: AddCatchLog}); // 给所有的 catch(e){} 后面第一条语句添加异常输出。
|
||||
var { code } = generator(ast, { jsescOption: { minimal: true, } });
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
||||
// const fs = require('fs');
|
||||
// var jscode = fs.readFileSync("./source.js", {
|
||||
// encoding: "utf-8"
|
||||
// });
|
||||
// code = muti_process_obdefusion(jscode);
|
||||
// console.log(code);
|
||||
// fs.writeFileSync('./code.js', code, {
|
||||
// encoding: "utf-8"
|
||||
// })
|
Loading…
x
Reference in New Issue
Block a user