Don't activate a tree if it has globals, since we can't handle that yet.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user