Fix MSVC warning.

This commit is contained in:
David Mandelin 2011-02-25 13:07:29 -08:00
parent 2b2f15e5f1
commit 3273dcef7a
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ JSCompartment::JSCompartment(JSRuntime *rt)
#ifdef JS_METHODJIT
jaegerCompartment(NULL),
#endif
propertyTree(this),
propertyTree(thisForCtor()),
debugMode(rt->debugMode),
#if ENABLE_YARR_JIT
regExpAllocator(NULL),

View File

@ -489,6 +489,7 @@ struct JS_FRIEND_API(JSCompartment) {
BackEdgeMap backEdgeTable;
JSCompartment *thisForCtor() { return this; }
public:
js::MathCache *getMathCache(JSContext *cx) {
return mathCache ? mathCache : allocMathCache(cx);