If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

xmlWithSimpleContent.function:: should be able to access String methods (e4x/XML/regress-376773.js)

VERIFIED FIXED

Status

()

Core
JavaScript Engine
--
enhancement
VERIFIED FIXED
11 years ago
10 years ago

People

(Reporter: Igor Bukanov, Assigned: Igor Bukanov)

Tracking

unspecified
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

11 years ago
[This is a spin-off of bug 373082 comment 23 and is already fixed as a part of the committed patch.]

SpiderMonkey should ensure that obj.method(arguments) is equivalent to obj.function::method(arguments) even in cases when obj is an xml with simple content and method refers to one of String.prototype functions. For example, the following should call String.prototype.charAt in all cases:

xml = <a>TEXT</a>
xml.charAt(0)
xml.function::charAt(0)
xml.function::charAt.call(xml, 0)
(Assignee)

Comment 1

11 years ago
Fixed as a part of the committed patch for bug 373082.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Depends on: 373082
Resolution: --- → FIXED

Comment 2

11 years ago
/cvsroot/mozilla/js/tests/e4x/XML/regress-376773.js,v  <--  regress-376773.js
initial revision: 1.1
Flags: in-testsuite+

Comment 3

11 years ago
verified fixed trunk windows, mac*, linux browser, shell 2007-04-10
Status: RESOLVED → VERIFIED

Updated

10 years ago
Summary: xmlWithSimpleContent.function:: should be able to access String methods → xmlWithSimpleContent.function:: should be able to access String methods (e4x/XML/regress-376773.js)
You need to log in before you can comment on or make changes to this bug.