Closed Bug 130137 Opened 22 years ago Closed 22 years ago

js_AddNativeProperty&js_ChangeNativePropertyAttrs fail to lock obj!

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: brendan, Assigned: brendan)

References

Details

Attachments

(1 file)

This is a stupid oversight on my part.  These functions wrap js_AddScopeProperty
and js_ChangeScopePropertyAttributes, calling js_GetMutableScope first to ensure
that obj has its own scope.  They utterly fail to follow the locking protocol
and do what other such layers in jsobj.c on top of jsscope.c functions must do.
 Patch in a second, this is a must-fix for 1.0.

/be
Attached patch proposed fixSplinter Review
Thanks to chingfa for reporting this bug so quickly.  Looking for r= and sr=
from my bug 62164 patch-buddies.

/be
*** Bug 130138 has been marked as a duplicate of this bug. ***
Comment on attachment 73588 [details] [diff] [review]
proposed fix

r=jband. Looks right to me.
Attachment #73588 - Flags: review+
Fixed.  Whew!

Thanks again to Chingfa.

/be
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: