| Index: src/accessors.cc
|
| ===================================================================
|
| --- src/accessors.cc (revision 2255)
|
| +++ src/accessors.cc (working copy)
|
| @@ -511,7 +511,10 @@
|
| // If there is an arguments variable in the stack, we return that.
|
| int index = ScopeInfo<>::StackSlotIndex(frame->code(),
|
| Heap::arguments_symbol());
|
| - if (index >= 0) return frame->GetExpression(index);
|
| + if (index >= 0) {
|
| + Handle<Object> arguments = Handle<Object>(frame->GetExpression(index));
|
| + if (!arguments->IsTheHole()) return *arguments;
|
| + }
|
|
|
| // If there isn't an arguments variable in the stack, we need to
|
| // find the frame that holds the actual arguments passed to the
|
|
|