Bug 1094827 - Add missing argument to AutoCompartment.
authorBrian Hackett <bhackett1024@gmail.com>
Fri, 07 Nov 2014 09:04:47 -0700
changeset 238998 02f36604f77bdd31503d5b95d5f4221c4cebe3d8
parent 238997 0d1b1733073508f7e95b570a4792ecd2b818116c
child 238999 c185e41609f85b3ec1cf1f5b5bb110e11ce569b1
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1094827
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1094827 - Add missing argument to AutoCompartment.
js/src/vm/Debugger.cpp
--- a/js/src/vm/Debugger.cpp
+++ b/js/src/vm/Debugger.cpp
@@ -4828,17 +4828,17 @@ DebuggerArguments_getArg(JSContext *cx, 
      * there is no guarantee this object has an ith argument.
      */
     MOZ_ASSERT(i >= 0);
     RootedValue arg(cx);
     RootedScript script(cx);
     if (unsigned(i) < frame.numActualArgs()) {
         script = frame.script();
         {
-            AutoCompartment ac(cx);
+            AutoCompartment ac(cx, script->compartment());
             if (!script->ensureHasAnalyzedArgsUsage(cx))
                 return false;
         }
         if (unsigned(i) < frame.numFormalArgs() && script->formalIsAliased(i)) {
             for (AliasedFormalIter fi(script); ; fi++) {
                 if (fi.frameIndex() == unsigned(i)) {
                     arg = frame.callObj().aliasedVar(fi);
                     break;