[Project_owners] Re: JavaScript Error: "redeclaration of const JS_LIB_LOADED"

Michael Vincent van Rantwijk mv_van_rantwijk at yahoo.com
Sun Oct 23 09:07:20 EDT 2005


Philip Chee wrote:
> I have the latest Mozimage installed but this happens with previous versions
> too. On browser startup I see this message:
> 
> Error: [JavaScript Error: "redeclaration of const JS_LIB_LOADED" {file:
> "chrome://mozimage/content/jslib.js" line: 32}]
> Source File: chrome://mozimage/content/jslib.js
> Line: 32
> 
> The error occurs here:
> 
> if (typeof(JS_LIB_LOADED)!='boolean') {
> try {
> /*************************** GLOBALS ***************************/
> const JS_LIB_LOADED     = true;

const JS_LIB_LOADED might still be 'undefined' and in that case the 
check will fail.

Michael


More information about the Project_owners mailing list