[Pkg-javascript-commits] [pdf.js] 288/414: Log uncaught global errors.

David Prévot taffit at moszumanska.debian.org
Tue Jun 28 17:12:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit fb47490648509279c352326c299e39fc81117a74
Author: Brendan Dahl <brendan.dahl at gmail.com>
Date:   Tue Mar 22 15:49:32 2016 -0700

    Log uncaught global errors.
---
 test/driver.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/driver.js b/test/driver.js
index 148a8c4..bc3e8e8 100644
--- a/test/driver.js
+++ b/test/driver.js
@@ -281,7 +281,10 @@ var Driver = (function DriverClosure() {
 
     run: function Driver_run() {
       var self = this;
-
+      window.onerror = function(message, source, line, column, error) {
+        self._info('Error: ' + message + ' Script: ' + source + ' Line: ' +
+                  line + ' Column: ' + column + ' StackTrace: ' +  error);
+      };
       this._info('User agent: ' + navigator.userAgent);
       this._log('Harness thinks this browser is "' + this.browser +
         '" with path "' + this.appPath + '"\n');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list