debug - /@line 44

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//@line 44 "e:\builds\moz2_slave\win32_build\build\toolkit\content\debug.js" var EXPORTED_SYMBOLS = ["NS_ASSERT"]; var gTraceOnAssert = true; /** * This function provides a simple assertion function for JavaScript. * If the condition is true, this function will do nothing. If the * condition is false, then the message will be printed to the console * and an alert will appear showing a stack trace, so that the (alpha * or nightly) user can file a bug containing it. For future enhancements, * see bugs 330077 and 330078. * * To suppress the dialogs, you can run with the environment variable * XUL_ASSERT_PROMPT set to 0 (if unset, this defaults to 1). * * @param condition represents the condition that we're asserting to be * true when we call this function--should be * something that can be evaluated as a boolean. * @param message a string to be displayed upon failure of the assertion */ function NS_ASSERT(condition, message) { if (condition) return; var releaseBuild = true; var defB = Components.classes["@mozilla.org/preferences-service;1"]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/06/2009 for the course SLSTU 1357 taught by Professor Quinto during the Spring '09 term at A.T. Still University.

Page1 / 2

debug - /@line 44

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online