Fix invalid assertion.
Runtime_DeclareContextSlot is used to declare global variables. R=vegorov@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/7158001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8285 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d77fa99e28
commit
9756397b76
@ -1232,7 +1232,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeclareContextSlot) {
|
|||||||
|
|
||||||
// Declarations are always done in the function context.
|
// Declarations are always done in the function context.
|
||||||
context = Handle<Context>(context->fcontext());
|
context = Handle<Context>(context->fcontext());
|
||||||
ASSERT(context->IsFunctionContext());
|
ASSERT(context->IsFunctionContext() || context->IsGlobalContext());
|
||||||
|
|
||||||
int index;
|
int index;
|
||||||
PropertyAttributes attributes;
|
PropertyAttributes attributes;
|
||||||
|
Loading…
Reference in New Issue
Block a user