Closed
Bug 420966
Opened 15 years ago
Closed 15 years ago
array_concat needs to deal with wrappers
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9beta5
People
(Reporter: mrbkap, Assigned: mrbkap)
References
Details
Attachments
(1 file, 2 obsolete files)
5.48 KB,
patch
|
mrbkap
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
array_concat only expands its argument if it is an array (as told by OBJ_IS_ARRAY). If the argument is a SJOW, then it won't expand it, even if the wrapped object *is* an array. As wrappers should be transparent, we should expand the wrapped array anyway. I took this opportunity to define a js_GetWrappedObject and use it.
Attachment #307325 -
Flags: review?(shaver)
Attachment #307325 -
Flags: review?(brendan)
Comment 1•15 years ago
|
||
Comment on attachment 307325 [details] [diff] [review] Fix >+ if (aobj && OBJ_IS_ARRAY(cx, js_GetWrappedObject(cx, aobj))) { Macro evals its second arg twice! >+extern JSObject * >+js_GetWrappedObject(JSContext *cx, JSObject *obj); Comment infallibility. Bonus for removing that blank line I mentioned in person ;-). /be
Attachment #307325 -
Flags: review?(brendan) → review+
Updated•15 years ago
|
Flags: blocking1.9?
Assignee | ||
Comment 2•15 years ago
|
||
Assignee: general → mrbkap
Attachment #307325 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #307325 -
Flags: review?(shaver)
Assignee | ||
Comment 3•15 years ago
|
||
Sorry for the spam -- missed the extra newline!
Attachment #307343 -
Attachment is obsolete: true
Attachment #307344 -
Flags: review+
Attachment #307344 -
Flags: approval1.9?
Updated•15 years ago
|
Version: unspecified → Trunk
Comment 4•15 years ago
|
||
Comment on attachment 307344 [details] [diff] [review] Really updated a1.9=beltzner
Attachment #307344 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 5•15 years ago
|
||
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Target Milestone: --- → mozilla1.9beta5
Updated•15 years ago
|
Flags: in-testsuite-
Flags: in-litmus-
You need to log in
before you can comment on or make changes to this bug.
Description
•