export default function debug (message) {
  if ((typeof process !== 'undefined' && process.env && process.env.DEBUG && process.env.DEBUG.match(/json-rules-engine/)) ||
      (typeof window !== 'undefined' && window.localStorage && window.localStorage.debug && window.localStorage.debug.match(/json-rules-engine/))) {
    console.log(message)
  }
}

@@ -35,16 +35,26 @@
 sage) %7B%0A
+  try %7B%0A  
   if ((t
@@ -171,16 +171,18 @@
 e/)) %7C%7C%0A
+  
       (t
@@ -322,16 +322,18 @@
 e/))) %7B%0A
+  
     cons
@@ -349,14 +349,54 @@
 essage)%0A
+    %7D%0A  %7D catch(ex) %7B%0A    // Do nothing%0A
   %7D%0A%7D%0A

Update debug.js (#185)