Bug 1641494 - Don't eagerly evaluate commands. r=Honza.

Depends on D77268

Differential Revision: https://phabricator.services.mozilla.com/D77269
This commit is contained in:
Nicolas Chevobbe 2020-06-01 11:20:02 +00:00
Родитель 59afb2c479
Коммит 34d39dc550
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -119,6 +119,12 @@ function isObject(value) {
* function. * function.
*/ */
exports.evalWithDebugger = function(string, options = {}, webConsole) { exports.evalWithDebugger = function(string, options = {}, webConsole) {
if (isCommand(string.trim()) && options.eager) {
return {
result: null,
};
}
const evalString = getEvalInput(string); const evalString = getEvalInput(string);
const { frame, dbg } = getFrameDbg(options, webConsole); const { frame, dbg } = getFrameDbg(options, webConsole);