Closed Bug 608235 Opened 14 years ago Closed 12 years ago

Incorrect error message for undefined[undefined]

Categories

(Rhino Graveyard :: Core, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mguillemot, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/20101013 Ubuntu/10.04 (lucid) Firefox/3.6.11 Build Identifier: Evaluation of an expression equivalent to undefined[undefined] will throw an exception with following error message: TypeError: Cannot read property "org.mozilla.javascript.Undefined@cd5f8b" from undefined The "org.mozilla.javascript.Undefined@cd5f8b" is not good at all here! Reproducible: Always
Thanks André, I merged your pull request. While this will definitely improve error messages, one possible problem with it is that functions will now be rendered as source. Either we should make error messages more terse (like spidermonkey) or we should add some function code shortening like we have in ScriptRuntime.notFunctionError().
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
I'll prefer updating the error messages to correspond to the Spidermonkey error messages (again?), because that will also help with the Mozilla test suite. Currently multiple tests need to be skipped due to different error messages in Rhino compared to Spidermonkey.
A big +1 from me for adapting messages to Spidermonkey.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: