[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.
/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