Changeset 83668 in webkit
- Timestamp:
- Apr 12, 2011, 5:13:11 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83667 r83668 1 2011-04-12 Stephanie Lewis <slewis@apple.com> 2 3 Reviewed by Oliver Hunt. 4 https://bugs.webkit.org/show_bug.cgi?id=58280 5 Fix a layout test by correctly comparing enums, and not adding exceptions. 6 7 * bindings/js/SerializedScriptValue.cpp: 8 (WebCore::SerializedScriptValue::create): 9 (WebCore::SerializedScriptValue::deserialize): 10 * bindings/js/SerializedScriptValue.h: 11 1 12 2011-04-12 Eric Carlson <eric.carlson@apple.com> 2 13 -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp
r83645 r83668 1343 1343 Vector<uint8_t> buffer; 1344 1344 SerializationReturnCode code = CloneSerializer::serialize(exec, value, buffer); 1345 if (throwExceptions )1345 if (throwExceptions == Throwing) 1346 1346 maybeThrowExceptionIfSerializationFailed(exec, code); 1347 1347 … … 1390 1390 { 1391 1391 DeserializationResult result = CloneDeserializer::deserialize(exec, globalObject, m_data); 1392 if (throwExceptions )1392 if (throwExceptions == Throwing) 1393 1393 maybeThrowExceptionIfSerializationFailed(exec, result.second); 1394 1394 return result.first; … … 1432 1432 break; 1433 1433 case ExistingExceptionError: 1434 throwError(exec, createTypeError(exec, "Javascript has thrown an exception. Halting serialization."));1435 1434 break; 1436 1435 case UnspecifiedError: 1437 throwError(exec, createTypeError(exec, "Unknown error while serializing or deserializing data."));1438 1436 break; 1439 1437 default: -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.h
r83645 r83668 48 48 }; 49 49 50 enum SerializationErrorMode { Throwing, NonThrowing };50 enum SerializationErrorMode { NonThrowing, Throwing }; 51 51 52 52 class SharedBuffer;
Note:
See TracChangeset
for help on using the changeset viewer.