Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 73305261630314d59c95664e985cd0f7be639808..079a9b89dc877952a9793a8379a0ffe48aafc212 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1232,7 +1232,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeclareContextSlot) { |
// 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; |