No bug - Fix warning spam, r=shu.

This commit is contained in:
Brian Hackett 2013-04-11 16:25:43 -06:00
parent c0dddd8180
commit 3ee89269e4

View File

@ -242,16 +242,18 @@ struct ForkJoinOp
// Locks a JSContext for its scope.
class LockedJSContext
{
#if defined(JS_THREADSAFE) && defined(JS_ION)
ForkJoinSlice *slice_;
#endif
JSContext *cx_;
public:
LockedJSContext(ForkJoinSlice *slice)
: slice_(slice),
#if defined(JS_THREADSAFE) && defined(JS_ION)
: slice_(slice),
cx_(slice->acquireContext())
#else
cx_(NULL)
: cx_(NULL)
#endif
{ }