1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 16:57:57 +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

@@ -1352,7 +1352,7 @@ const CommandLine = Module("commandline", {
}),
/**
* eval() a JavaScript expression and return a string suitable
* Evaluate a JavaScript expression and return a string suitable
* to be echoed.
*
* @param {string} arg
@@ -1364,7 +1364,7 @@ const CommandLine = Module("commandline", {
return "";
try {
arg = dactyl.eval(arg);
arg = dactyl.usereval(arg);
}
catch (e) {
dactyl.echoerr(e);