Changeset 99386 in webkit
- Timestamp:
- Nov 6, 2011, 2:52:22 PM (15 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
testing/v8/WebCoreTestSupport.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r99384 r99386 1 2011-11-06 Adam Barth <abarth@webkit.org> 2 3 Don't crash when a context hasn't been created. This fixed a 4 testing-only crash on the bots in the Chromium port. 5 6 * testing/v8/WebCoreTestSupport.cpp: 7 (WebCoreTestSupport::resetInternalsObject): 8 1 9 2011-11-06 Darin Adler <darin@apple.com> 2 10 -
trunk/Source/WebCore/testing/v8/WebCoreTestSupport.cpp
r95901 r99386 48 48 void resetInternalsObject(v8::Local<v8::Context> context) 49 49 { 50 // This can happen if JavaScript is disabled in the main frame. 51 if (context.IsEmpty()) 52 return; 53 50 54 v8::Context::Scope contextScope(context); 51 55 v8::HandleScope scope; 52 56 53 57 v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(context->Global()->Get(v8::String::New(Internals::internalsId))); 54 Internals * internals = V8Internals::toNative(object);58 Internals* internals = V8Internals::toNative(object); 55 59 if (internals) { 56 60 ScriptExecutionContext* scriptContext = getScriptExecutionContext();
Note:
See TracChangeset
for help on using the changeset viewer.