зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
59afb2c479
Коммит
34d39dc550
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче