Changeset 150381 in webkit for trunk/Source/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- May 20, 2013, 2:10:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSContextRef.cpp
r149420 r150381 180 180 JSObjectRef JSContextGetGlobalObject(JSContextRef ctx) 181 181 { 182 if (!ctx) { 183 ASSERT_NOT_REACHED(); 184 return 0; 185 } 182 186 ExecState* exec = toJS(ctx); 183 187 APIEntryShim entryShim(exec); … … 189 193 JSContextGroupRef JSContextGetGroup(JSContextRef ctx) 190 194 { 195 if (!ctx) { 196 ASSERT_NOT_REACHED(); 197 return 0; 198 } 191 199 ExecState* exec = toJS(ctx); 192 200 return toRef(&exec->vm()); … … 195 203 JSGlobalContextRef JSContextGetGlobalContext(JSContextRef ctx) 196 204 { 205 if (!ctx) { 206 ASSERT_NOT_REACHED(); 207 return 0; 208 } 197 209 ExecState* exec = toJS(ctx); 198 210 APIEntryShim entryShim(exec); … … 203 215 JSStringRef JSContextCreateBacktrace(JSContextRef ctx, unsigned maxStackSize) 204 216 { 217 if (!ctx) { 218 ASSERT_NOT_REACHED(); 219 return 0; 220 } 205 221 ExecState* exec = toJS(ctx); 206 222 JSLockHolder lock(exec);
Note:
See TracChangeset
for help on using the changeset viewer.