Ignore:
Timestamp:
Jan 11, 2009, 11:34:12 PM (16 years ago)
Author:
[email protected]
Message:

2009-01-11 David Levin <[email protected]>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=23245

Add initializeThreading to key places in JS API to ensure that
UString is properly initialized.

  • API/JSContextRef.cpp: (JSContextGroupCreate): (JSGlobalContextCreate):
  • API/JSObjectRef.cpp: (JSClassCreate):
  • API/JSStringRef.cpp: (JSStringCreateWithCharacters): (JSStringCreateWithUTF8CString):
  • API/JSStringRefCF.cpp: (JSStringCreateWithCFString):
File:
1 edited

Legend:

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

    r39670 r39817  
    3333#include "FunctionConstructor.h"
    3434#include "Identifier.h"
     35#include "InitializeThreading.h"
    3536#include "JSArray.h"
    3637#include "JSCallbackConstructor.h"
     
    5354JSClassRef JSClassCreate(const JSClassDefinition* definition)
    5455{
     56    initializeThreading();
    5557    RefPtr<OpaqueJSClass> jsClass = (definition->attributes & kJSClassAttributeNoAutomaticPrototype)
    5658        ? OpaqueJSClass::createNoAutomaticPrototype(definition)
Note: See TracChangeset for help on using the changeset viewer.