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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user