Files
todo-frontend/node_modules/licia/evalJs.js
Agent d12eea7693
Some checks failed
continuous-integration/drone/push Build is failing
fix: 微信登录补充保存username和role
2026-04-04 07:35:21 +00:00

17 lines
363 B
JavaScript

var root = require('./root');
exports = function(js, ctx) {
ctx = ctx || root;
try {
return new Function('return (' + js + ');').call(ctx);
} catch (e) {
try {
return new Function('return ' + js).call(ctx);
} catch (e) {
return new Function(js).call(ctx);
}
}
};
module.exports = exports;