Bug 343165 - Make debug.js appear everywhere, patch by Dave Townsend (Mossop), r=mconnor

This commit is contained in:
martijn.martijn@gmail.com
2006-07-19 12:06:54 +00:00
parent b73c74a279
commit 495975c872
3 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,6 @@
# This file contains functions that are useful for debugging purposes from
# within JavaScript code.
const NS_ASSERT_ENVIRONMENT_VARIABLE_NAME = "XUL_ASSERT_PROMPT";
var gTraceOnAssert = true;
/**
@@ -89,8 +88,8 @@ function NS_ASSERT(condition, message) {
var environment = Components.classes["@mozilla.org/process/environment;1"].
getService(Components.interfaces.nsIEnvironment);
if (environment.exists(NS_ASSERT_ENVIRONMENT_VARIABLE_NAME) &&
!parseInt(environment.get(NS_ASSERT_ENVIRONMENT_VARIABLE_NAME)))
if (environment.exists("XUL_ASSERT_PROMPT") &&
!parseInt(environment.get("XUL_ASSERT_PROMPT")))
return;
var source = null;