Updated a few more things

This commit is contained in:
QuiteAFancyEmerald 2022-02-08 00:43:17 -08:00
parent c827e9f7e1
commit 73cdcb3186
47 changed files with 35805 additions and 1102 deletions

11
lib/js/eval.js Normal file
View file

@ -0,0 +1,11 @@
const { Syntax } = require('./esotope');
const { createCallExpression, createIdentifier } = require('./node-builder');
module.exports = {
type: Syntax.CallExpression,
condition: node => node.callee.type == 'Identifier' && node.callee.name == 'eval' && node.arguments.length,
run: node => {
node.arguments[0] = createCallExpression(createIdentifier('__processScript'), [ node.arguments[0] ]);
return true;
},
};