[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
Last Resolved: 12 years ago
Depends on: 373082
Resolution: --- → FIXED
/cvsroot/mozilla/js/tests/e4x/XML/regress-376773.js,v <-- regress-376773.js initial revision: 1.1
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.