Closed Bug 470609 Opened 16 years ago Closed 13 years ago

TM: convert String objects into primitive strings when invoking String functions on them

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gal, Unassigned)

Details

Attachments

(1 file)

Attached patch v1Splinter Review
We used to do this explicitly for match(), but we can easily do this for all String functions. This only works for String objects atm. It might be cleaner to use an imacro for the conversion, and then properly support scripted toString() implementations of arbitrary objects.

(If anyone wants to grab this and further improve it, go ahead.)
Attachment #354016 - Flags: review?(jorendorff)
This is not a blocker for 1.9.1 imo
Attachment #354016 - Flags: review?(jorendorff) → review+
Comment on attachment 354016 [details] [diff] [review]
v1

I like the change.  I'm not a peer on JS though!
Dangit brendan, rectify this!  Now!  :-P

If I knew we were still using despot for this I'd do it now (think peers have that power) since I know you've expressed surprise at this before, but I'm not sure if despot is relevant or not any more.
Comment on attachment 354016 [details] [diff] [review]
v1

You wrote the code I changed so I guess you must be qualified at some level :)
http://hg.mozilla.org/tracemonkey/rev/4acb47a25eb5
Flags: wanted1.9.1?
Whiteboard: fixed-in-tracemonkey
Backed out. Makes tinderboxes orange.

http://hg.mozilla.org/tracemonkey/rev/083a9f80c6ce
Obviously by peer-duck-typing, jorendorff is a peer. Problem is we are still using despot and jorendorff was only webmonkey, not cvsuser. I made him cvsuser (sue me, Reed :-P) just to be able to add him as peer.

I also moved graydon from member to peer. I'd like to add dmandelin, gal, and danderson but they won't be cvsusers in any future I can foresee, and shouldn't have to go through the hassles. Ah, homebrew tools (despot is still useful, but too tied to CVS).

/be
It looks like this was backed out, unmarking as fixed-in-tracemonkey.

Ping @jorendorff.
Whiteboard: fixed-in-tracemonkey
Obsolete with the removal of tracejit.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: