From 8a947deffacda7df2693dbc8ca7154ba3db03791 Mon Sep 17 00:00:00 2001 From: Vijay Menon Date: Thu, 16 Jan 2020 22:07:18 +0000 Subject: [PATCH] [dartdevc] clear console on hot restart Internal request b/147818704 Change-Id: I08c655c74ea10b6f14ffde8283cbfc286dfae41b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/132180 Commit-Queue: Vijay Menon Reviewed-by: Gary Roumanis --- pkg/dev_compiler/lib/js/legacy/dart_library.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/dev_compiler/lib/js/legacy/dart_library.js b/pkg/dev_compiler/lib/js/legacy/dart_library.js index 8fb0faba76975..82670a903011c 100644 --- a/pkg/dev_compiler/lib/js/legacy/dart_library.js +++ b/pkg/dev_compiler/lib/js/legacy/dart_library.js @@ -246,6 +246,7 @@ if (!dart_library) { /// Once the `onReloadStart()` completes, this finishes the restart. function finishHotRestart() { + window.console.clear(); if (clearState) { // This resets all initialized fields and clears type caches and other // temporary data structures used by the compiler/SDK.