Ignore:
Timestamp:
Aug 15, 2008, 12:43:48 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Geoff Garen.

JSStringRef is created context-free, but can get linked to one via an identifier table,
breaking an implicit API contract.

Made JSStringRef point to OpaqueJSString, which is a new string object separate from UString.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/identifier.cpp

    r35478 r35775  
    224224}
    225225
     226#ifndef NDEBUG
     227void Identifier::checkSameIdentifierTable(ExecState* exec, UString::Rep* rep)
     228{
     229    ASSERT(rep->identifierTable() == exec->identifierTable());
     230}
     231
     232void Identifier::checkSameIdentifierTable(JSGlobalData* globalData, UString::Rep* rep)
     233{
     234    ASSERT(rep->identifierTable() == globalData->identifierTable);
     235}
     236
     237#endif
     238
    226239} // namespace KJS
Note: See TracChangeset for help on using the changeset viewer.