Ignore:
Timestamp:
Aug 11, 2009, 2:30:11 PM (16 years ago)
Author:
[email protected]
Message:

REGRESSION: Hang/crash in BytecodeGenerator::constRegisterFor loading simple page
https://bugs.webkit.org/show_bug.cgi?id=28169

Reviewed by Geoff Garen.

Handle the case where someone has attempted to shadow a property
on the global object with a constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Nodes.cpp

    r47022 r47062  
    12061206        return generator.emitNode(local, m_init);
    12071207    }
    1208    
     1208
     1209    if (generator.codeType() != EvalCode) {
     1210        if (m_init)
     1211            return generator.emitNode(m_init);
     1212        else
     1213            return generator.emitResolve(generator.newTemporary(), m_ident);
     1214    }
    12091215    // FIXME: While this code should only be hit in eval code, it will potentially
    12101216    // assign to the wrong base if m_ident exists in an intervening dynamic scope.
Note: See TracChangeset for help on using the changeset viewer.