Closed Bug 234197 Opened 21 years ago Closed 21 years ago

alert() called without an argument throws an exception

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 98185

People

(Reporter: pscemla, Unassigned)

Details

User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 When the alert() function is called without an argument, there is the following error message in the javascript console (and no alert box is displayed): Error: uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.alert]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: javascript: alert() :: <TOP_LEVEL> :: line 1" data: no] Reproducible: Always Steps to Reproduce: 1.in the javascript console, type: alert() 2. 3. Actual Results: Error: uncaught exception: [Exception... "Not enough arguments [nsIDOMWindowInternal.alert]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: javascript: alert() :: <TOP_LEVEL> :: line 1" data: no] Expected Results: The browser should display a alert box xith an empty message (this is the IE behavior). tested with FireBird 0.8 on WIndows 2000 and Mozilla 1.7a on MacOS
*** This bug has been marked as a duplicate of 98185 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.