Ignore:
Timestamp:
Aug 17, 2009, 6:00:12 PM (16 years ago)
Author:
[email protected]
Message:

REGRESSION (r47292): Prototype.js is broken by ES5 Arguments changes
https://bugs.webkit.org/show_bug.cgi?id=28341
<rdar://problem/7145615>

RS=Mark Rowe

Reverting r47292. Alas Prototype.js breaks with Arguments inheriting
from Array as ES5 attempted. Prototype.js defines $A in terms of a
function it places on (among other global objects) the Array prototype,
thus breaking $A for arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSGlobalObject.h

    r47304 r47404  
    3939    class ErrorConstructor;
    4040    class FunctionPrototype;
     41    class GlobalCodeBlock;
    4142    class GlobalEvalFunction;
    4243    class NativeErrorConstructor;
    43     class GlobalCodeBlock;
    44     class ObjectConstructor;
     44    class ProgramCodeBlock;
    4545    class PrototypeFunction;
    4646    class RegExpConstructor;
     
    6262                , registerArraySize(0)
    6363                , globalScopeChain(NoScopeChain())
    64                 , objectConstructor(0)
    6564                , regExpConstructor(0)
    6665                , errorConstructor(0)
     
    7473                , callFunction(0)
    7574                , applyFunction(0)
    76                 , objectToStringFunction(0)
    77                 , objectToLocaleStringFunction(0)
    7875                , objectPrototype(0)
    7976                , functionPrototype(0)
     
    104101            int recursion;
    105102
    106             ObjectConstructor* objectConstructor;
    107103            RegExpConstructor* regExpConstructor;
    108104            ErrorConstructor* errorConstructor;
     
    117113            NativeFunctionWrapper* callFunction;
    118114            NativeFunctionWrapper* applyFunction;
    119             NativeFunctionWrapper* objectToStringFunction;
    120             NativeFunctionWrapper* objectToLocaleStringFunction;
    121115
    122116            ObjectPrototype* objectPrototype;
     
    191185        // replaces the global object's associated property.
    192186
    193         ObjectConstructor* objectConstructor() const { return d()->objectConstructor; }
    194187        RegExpConstructor* regExpConstructor() const { return d()->regExpConstructor; }
    195188
     
    212205        DatePrototype* datePrototype() const { return d()->datePrototype; }
    213206        RegExpPrototype* regExpPrototype() const { return d()->regExpPrototype; }
    214 
    215         NativeFunctionWrapper* objectToStringFunction() const { return d()->objectToStringFunction; }
    216         NativeFunctionWrapper* objectToLocaleStringFunction() const { return d()->objectToLocaleStringFunction; }
    217207
    218208        JSObject* methodCallDummy() const { return d()->methodCallDummy; }
Note: See TracChangeset for help on using the changeset viewer.