Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Unified Diff: Source/core/inspector/InjectedScriptSource.js

Issue 430503002: DevTools: Remove console last result $_ on console clear. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/inspector/console/console-last-result-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InjectedScriptSource.js
diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js
index 77c1439c34247e6831b7ffc9fdd3cfe5214ae7b4..cf1868f09ce46db10724b89fbbcbb86c6c693ac9 100644
--- a/Source/core/inspector/InjectedScriptSource.js
+++ b/Source/core/inspector/InjectedScriptSource.js
@@ -359,6 +359,8 @@ InjectedScript.prototype = {
*/
releaseObjectGroup: function(objectGroupName)
{
+ if (objectGroupName === "console")
+ delete this._lastResult;
var group = this._objectGroups[objectGroupName];
if (!group)
return;
« no previous file with comments | « LayoutTests/inspector/console/console-last-result-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698