Closed Bug 376773 Opened 18 years ago Closed 18 years ago

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

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: igor, Assigned: igor)

References

Details

[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)
Fixed as a part of the committed patch for bug 373082.
Status: NEW → RESOLVED
Closed: 18 years ago
Depends on: 373082
Resolution: --- → FIXED
/cvsroot/mozilla/js/tests/e4x/XML/regress-376773.js,v <-- regress-376773.js initial revision: 1.1
Flags: in-testsuite+
verified fixed trunk windows, mac*, linux browser, shell 2007-04-10
Status: RESOLVED → VERIFIED
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.