Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fix for CB-8023 - weinre console.log fails when given null value
  • Loading branch information
pmuellr committed Nov 15, 2014
1 parent 707a7a1 commit 04ba61d963c7f1774b4bff5d7eb3a5772e3f7088
Showing 2 changed files with 7 additions and 1 deletion.
@@ -68,16 +68,21 @@ function onLoad() {
var interval

function startStuff() {
console.log() // test for https://issues.apache.org/jira/browse/CB-8023

if (window.localStorage) window.localStorage.clear()
if (window.sessionStorage) window.sessionStorage.clear()

storageIndex = 0

interval = setInterval(intervalStuff, 1000)

console.log("stuff starting")
}

function stopStuff() {
clearInterval(interval)
console.log("stuff stopping")
}

//------------------------------------------------------------------------------
@@ -182,4 +187,3 @@ function output(string) {
function logXhr(xhr) {
console.log("xhr: readyState: " + xhr.readyState)
}

@@ -75,6 +75,8 @@ module.exports = class Console

#---------------------------------------------------------------------------
_generic: (level, messageParts) ->
return if !messageParts?.length

message = messageParts[0].toString()
parameters = []

0 comments on commit 04ba61d

Please sign in to comment.