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
// Declarations are always done in the function context.
context = Handle<Context>(context->fcontext());
- ASSERT(context->IsFunctionContext());
+ ASSERT(context->IsFunctionContext() || context->IsGlobalContext());
int index;
PropertyAttributes attributes;