Ignore:
Timestamp:
Dec 3, 2009, 6:17:46 PM (15 years ago)
Author:
[email protected]
Message:

REGRESSION(4.0.3-48777): Crash in JSC::ExecState::propertyNames() (Debug-only?)
https://bugs.webkit.org/show_bug.cgi?id=32133

Reviewed by Gavin Barraclough.

Work around odd GCC-ism and correct the scopechain for use by
calls made while a cachedcall is active on the callstack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/CachedCall.h

    r50608 r51672  
    5353        void setThis(JSValue v) { m_closure.setArgument(0, v); }
    5454        void setArgument(int n, JSValue v) { m_closure.setArgument(n + 1, v); }
    55         CallFrame* newCallFrame() { return m_closure.newCallFrame; }
     55
     56        CallFrame* newCallFrame(ExecState* exec)
     57        {
     58            CallFrame* callFrame = m_closure.newCallFrame;
     59            callFrame->setScopeChain(exec->scopeChain());
     60            return callFrame;
     61        }
     62
    5663        ~CachedCall()
    5764        {
Note: See TracChangeset for help on using the changeset viewer.