Closed Bug 698378 Opened 13 years ago Closed 13 years ago

Give nsIScriptContext::EvaluateStringWithValue a JSObject* scope parameter

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: Ms2ger, Assigned: Ms2ger)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Attached patch Patch v1Splinter Review
No description provided.
Attachment #570651 - Flags: review?(peterv)
Flags: in-testsuite-
Comment on attachment 570651 [details] [diff] [review] Patch v1 Review of attachment 570651 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/nsJSEnvironment.cpp @@ +1210,5 @@ > } > > + if (!aScopeObject) { > + aScopeObject = JS_GetGlobalObject(mContext); > + } Could we drop this too? I fund 2 callers and both should pass in an object.
Attachment #570651 - Flags: review?(peterv) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → mozilla11
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: