Don't activate a tree if it has globals, since we can't handle that yet.

This commit is contained in:
Andreas Gal
2008-08-07 19:59:21 -07:00
parent 271a088ec9
commit 5adaa97018

View File

@@ -305,6 +305,9 @@ builtin_CloseIterator(JSContext* cx, jsval v)
GuardRecord* FASTCALL
builtin_CallTree(InterpState* outer, Fragment* f)
{
/* current we can't deal with inner trees that have globals so report an error */
if (((TreeInfo*)f->vmprivate)->globalSlots.length())
return NULL;
InterpState state;
state.ip = f->ip;
state.sp = outer->sp;