Changeset 136986 in webkit for trunk/Source/JavaScriptCore/API/JSValueRef.cpp
- Timestamp:
- Dec 7, 2012, 2:34:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSValueRef.cpp
r133493 r136986 45 45 #include <algorithm> // for std::min 46 46 47 #if PLATFORM(MAC) 48 #include <mach-o/dyld.h> 49 #endif 50 47 51 using namespace JSC; 52 53 #if PLATFORM(MAC) 54 static bool evernoteHackNeeded() 55 { 56 static const int32_t webkitLastVersionWithEvernoteHack = 35133959; 57 static bool hackNeeded = CFEqual(CFBundleGetIdentifier(CFBundleGetMainBundle()), CFSTR("com.evernote.Evernote")) 58 && NSVersionOfLinkTimeLibrary("JavaScriptCore") <= webkitLastVersionWithEvernoteHack; 59 60 return hackNeeded; 61 } 62 #endif 48 63 49 64 ::JSType JSValueGetType(JSContextRef ctx, JSValueRef value) … … 333 348 void JSValueUnprotect(JSContextRef ctx, JSValueRef value) 334 349 { 350 #if PLATFORM(MAC) 351 if ((!value || !ctx) && evernoteHackNeeded()) 352 return; 353 #endif 354 335 355 ExecState* exec = toJS(ctx); 336 356 APIEntryShim entryShim(exec);
Note:
See TracChangeset
for help on using the changeset viewer.