Merge bustage, part 3.

This commit is contained in:
David Anderson 2012-08-29 20:57:37 -07:00
parent 204ee64b1c
commit 94b6346826

View File

@ -105,8 +105,7 @@ XPCJSStackFrame::CreateStack(JSContext* cx, XPCJSStackFrame** stack)
for (size_t i = 0; i < desc->nframes && self; i++) {
self->mLanguage = nsIProgrammingLanguage::JAVASCRIPT;
JS::AutoEnterScriptCompartment ac;
if (ac.enter(cx, desc->frames[i].script)) {
JS::AutoCompartment ac(cx, desc->frames[i].script);
const char* filename = JS_GetScriptFilename(cx, desc->frames[i].script);
if (filename) {
self->mFilename = (char*)