Incorrect error message "() has no properties"

VERIFIED FIXED

Status

()

Core
JavaScript Engine
--
minor
VERIFIED FIXED
12 years ago
11 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

({regression, testcase})

Trunk
regression, testcase
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
js> function a(){return null;} a(1)[0]
typein:1: TypeError: () has no properties

js> /a/.exec("b")[0]
typein:2: TypeError: () has no properties

This error message would be considerably more informative if it were correct ;)
(Reporter)

Updated

12 years ago
Flags: blocking1.9?

Comment 1

12 years ago
This occurs with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070113 SeaMonkey/1.5a as well. Please change OS to ALL.

Error: () has no properties
Source file: javascript: function a(){return null;} a(1)[0]
Line: 1

Error: () has no properties
Source file: javascript: /a/.exec("b")[0]
Line: 1
(Reporter)

Updated

12 years ago
OS: Mac OS X → All
Hardware: Macintosh → All
(Reporter)

Comment 2

11 years ago
This recently became WFM.  Probably fixed by the patch in bug 372364.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Flags: blocking1.9?
Resolution: --- → FIXED

Updated

11 years ago
Flags: in-testsuite?
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-372364.js,v  <--  regress-372364.js
initial revision: 1.1
Flags: in-testsuite? → in-testsuite+
verified fixed 1.9.0 20070320 win/mac*/linux
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.