diff --git a/js/src/jscntxt.cpp b/js/src/jscntxt.cpp index dd3eae6fb936..013f1fae599f 100644 --- a/js/src/jscntxt.cpp +++ b/js/src/jscntxt.cpp @@ -117,6 +117,12 @@ js::CloneFunctionAtCallsite(JSContext *cx, HandleFunction fun, HandleScript scri JS_ASSERT(!fun->nonLazyScript()->enclosingStaticScope()); JS_ASSERT(types::UseNewTypeForClone(fun)); + /* + * If we start allocating function objects in the nursery, then the callsite + * clone table will need a postbarrier. + */ + JS_ASSERT(fun->isTenured()); + typedef CallsiteCloneKey Key; typedef CallsiteCloneTable Table;