Closed Bug 381108 Opened 18 years ago Closed 18 years ago

Inconsistent use of space after colon in object literal decompilation

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: mrbkap)

References

Details

(Keywords: testcase)

Attachments

(1 file)

js> (function() { return {a:3, b getter: f} }) function () { return {a:3, b getter: f}; } It would be nice if there were a space after "a:" like there's a space after "b getter:". The space after "b getter:" was added in bug 381101.
Attached patch Trivial fixSplinter Review
Attachment #265189 - Flags: review?(brendan)
Blocks: js1.7src
Comment on attachment 265189 [details] [diff] [review] Trivial fix Cool. Bonus for that followup bug about using JSOP_ANONFUNOBJ2 for genexps instead of a strncmp(..., js_function_str, 8) evil. /be
Attachment #265189 - Flags: review?(brendan) → review+
For the record: I'm waiting to check this in until I have a chance to run the JS testsuite and make sure that none of the tests depend on this inconsistent behavior.
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
/cvsroot/mozilla/js/tests/js1_7/decompilation/regress-381108.js,v <-- regress-381108.js initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.9.0 linux/mac*/windows.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: