Bug 763580 - Fix Clang warning in SpreadContext copy constructor. r=bpeterson
authorJan de Mooij <jdemooij@mozilla.com>
Mon, 11 Jun 2012 20:07:04 +0200
changeset 96426 fbbf7c4e598f274963f3ac8cb721c364a35ae329
parent 96425 ecbe3c75551d5525d9d8ef3ea885a3045a04068f
child 96427 d52a31584c8a5e8e62628bec598e8e4e23b1e8cb
push id22904
push useremorley@mozilla.com
push dateTue, 12 Jun 2012 09:45:09 +0000
treeherdermozilla-central@733994f12c53 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbpeterson
bugs763580
milestone16.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 763580 - Fix Clang warning in SpreadContext copy constructor. r=bpeterson
js/src/jsinterp.cpp
--- a/js/src/jsinterp.cpp
+++ b/js/src/jsinterp.cpp
@@ -1024,17 +1024,17 @@ public:
     JSContext *cx;
     RootedObject arr;
     int32_t *count;
     SpreadContext(JSContext *cx, JSObject *array, int32_t *count)
         : cx(cx), arr(cx, array), count(count) {
         JS_ASSERT(array->isArray());
     }
     SpreadContext(SpreadContext &scx)
-         : cx(cx), arr(scx.cx, scx.arr), count(scx.count) {}
+         : cx(scx.cx), arr(scx.cx, scx.arr), count(scx.count) {}
     bool operator ()(JSContext *cx, const Value &item) {
         if (*count == INT32_MAX) {
             JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL,
                                  JSMSG_SPREAD_TOO_LARGE);
             return false;
         }
         return arr->defineElement(cx, (*count)++, item, NULL, NULL, JSPROP_ENUMERATE);
     }