Przeglądaj źródła

use console.error as default behavior

Evan You 10 lat temu
rodzic
commit
2f48226973
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/observer/watcher.js

+ 1 - 1
src/core/observer/watcher.js

@@ -104,7 +104,7 @@ export default class Watcher {
       if (config.errorHandler) {
         config.errorHandler.call(null, e, this.vm)
       } else {
-        throw e
+        console.error(e)
       }
       // return old value when evaluation fails so the current UI is preserved
       // if the error was somehow handled by user