Ignore:
Timestamp:
Jan 21, 2010, 1:04:34 PM (15 years ago)
Author:
[email protected]
Message:

Force JSC to create a prototype chain for API classes with a
parent class but no static functions.

Reviewed by Geoff Garen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSClassRef.cpp

    r53320 r53642  
    123123PassRefPtr<OpaqueJSClass> OpaqueJSClass::create(const JSClassDefinition* definition)
    124124{
    125     if (const JSStaticFunction* staticFunctions = definition->staticFunctions) {
     125    const JSStaticFunction* staticFunctions = definition->staticFunctions;
     126    if (staticFunctions || definition->parentClass) {
    126127        // copy functions into a prototype class
    127128        JSClassDefinition protoDefinition = kJSClassDefinitionEmpty;
Note: See TracChangeset for help on using the changeset viewer.