Bug 763580 - Fix Clang warning in SpreadContext copy constructor. r=bpeterson

This commit is contained in:
Jan de Mooij 2012-06-11 20:07:04 +02:00
parent 2c6246852d
commit 3af761e21d

View File

@ -1029,7 +1029,7 @@ public:
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,