1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-13 04:55:52 +01:00

Don't use the word eval for fear that it may break "use strict" mode later.

This commit is contained in:
Kris Maglione
2010-09-17 06:15:13 -04:00
parent b8331a1b55
commit 47083c5b66
6 changed files with 42 additions and 62 deletions

View File

@@ -174,7 +174,7 @@ const AutoCommands = Module("autocommands", {
if (args.bang)
autocommands.remove(event, regex);
if (args["-javascript"])
cmd = eval("(function (args) { with(args) {" + cmd + "} })");
cmd = dactyl.userfunc("args", "with(args) {" + cmd + "}");
autocommands.add(events, regex, cmd);
}
else {