[Pkg-javascript-commits] [node-sha.js] 145/237: Don't use console.error

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:03:48 UTC 2017


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

rouca pushed a commit to branch master
in repository node-sha.js.

commit 6e0bd2d8f3db4c267fbaebcbd1b542bc03b1e356
Author: Parsha Pourkhomami <parshap+git at gmail.com>
Date:   Mon Sep 15 17:41:00 2014 -0700

    Don't use console.error
    
    Some browsers don't have console.error - passes tests in IE9 using
    testling.
---
 test/hash.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/hash.js b/test/hash.js
index cbbfa4a..8924895 100644
--- a/test/hash.js
+++ b/test/hash.js
@@ -75,10 +75,10 @@ function makeTest(name, data) {
     //t.plan(expected.length + 1)
     h._update = function (block) {
       var e = expected.shift()
-      console.error('---block---')
-      console.error(hexpp(block), block.length)
-      console.error('---e---')
-      console.error(hexpp(e), block.length)
+      console.log('---block---')
+      console.log(hexpp(block), block.length)
+      console.log('---e---')
+      console.log(hexpp(e), block.length)
       console.log(block)
       equal(t, block, e)
       if(n < 0)

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



More information about the Pkg-javascript-commits mailing list