Bug 1188347 - Part 2: Fix bustage. r=jandem

This commit is contained in:
Till Schneidereit 2015-09-23 14:00:03 +02:00
parent 4491a5d644
commit 0eb112ec10

View File

@ -477,7 +477,7 @@ class JSFunction : public js::NativeObject
// Note: createScriptForLazilyInterpretedFunction triggers a barrier on
// lazy script before it is overwritten here.
MOZ_ASSERT(isInterpretedLazy());
if (!lazyScript()->maybeScript())
if (lazyScriptOrNull() && !lazyScript()->maybeScript())
lazyScript()->initScript(script);
flags_ &= ~INTERPRETED_LAZY;
flags_ |= INTERPRETED;