mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 05:45:55 +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){} 后面第一条语句添加异常输出。
|
traverse(ast, {CatchClause: AddCatchLog}); // 给所有的 catch(e){} 后面第一条语句添加异常输出。
|
||||||
var { code } = generator(ast, { jsescOption: { minimal: true, } });
|
var { code } = generator(ast, { jsescOption: { minimal: true, } });
|
||||||
return code;
|
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