Title: [134689] trunk/Source/WebCore
Revision
134689
Author
[email protected]
Date
2012-11-14 16:23:55 -0800 (Wed, 14 Nov 2012)

Log Message

IndexedDB: Add clear() method to JSC ScriptValue
https://bugs.webkit.org/show_bug.cgi?id=102288

Patch by Michael Pruett <[email protected]> on 2012-11-14
Reviewed by Kentaro Hara.

IndexedDB uses the ScriptValue::clear() method, which existed
previously only in the V8 implementation of ScriptValue. This
change is necessary to implement IndexedDB for JSC.

Tests: storage/indexeddb/*

* bindings/js/ScriptValue.h:
(WebCore::ScriptValue::clear):
(ScriptValue):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (134688 => 134689)


--- trunk/Source/WebCore/ChangeLog	2012-11-15 00:19:01 UTC (rev 134688)
+++ trunk/Source/WebCore/ChangeLog	2012-11-15 00:23:55 UTC (rev 134689)
@@ -1,3 +1,20 @@
+2012-11-14  Michael Pruett  <[email protected]>
+
+        IndexedDB: Add clear() method to JSC ScriptValue
+        https://bugs.webkit.org/show_bug.cgi?id=102288
+
+        Reviewed by Kentaro Hara.
+
+        IndexedDB uses the ScriptValue::clear() method, which existed
+        previously only in the V8 implementation of ScriptValue. This
+        change is necessary to implement IndexedDB for JSC.
+
+        Tests: storage/indexeddb/*
+
+        * bindings/js/ScriptValue.h:
+        (WebCore::ScriptValue::clear):
+        (ScriptValue):
+
 2012-11-14  Joshua Bell  <[email protected]>
 
         IndexedDB: Indexing tests are flaky-crashing

Modified: trunk/Source/WebCore/bindings/js/ScriptValue.h (134688 => 134689)


--- trunk/Source/WebCore/bindings/js/ScriptValue.h	2012-11-15 00:19:01 UTC (rev 134688)
+++ trunk/Source/WebCore/bindings/js/ScriptValue.h	2012-11-15 00:23:55 UTC (rev 134689)
@@ -60,6 +60,8 @@
     bool isFunction() const;
     bool hasNoValue() const { return !m_value; }
 
+    void clear() { m_value.clear(); }
+
     bool operator==(const ScriptValue& other) const { return m_value == other.m_value; }
 
     PassRefPtr<SerializedScriptValue> serialize(ScriptState*, SerializationErrorMode = Throwing);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to