Title: [202306] trunk/Source/WebCore
- Revision
- 202306
- Author
- [email protected]
- Date
- 2016-06-21 16:52:50 -0700 (Tue, 21 Jun 2016)
Log Message
Unreviewed, attempt to fix the build after r202303.
* bindings/js/JSDOMIterator.h:
(WebCore::IteratorInspector::decltype):
(WebCore::IteratorInspector::test):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (202305 => 202306)
--- trunk/Source/WebCore/ChangeLog 2016-06-21 23:47:55 UTC (rev 202305)
+++ trunk/Source/WebCore/ChangeLog 2016-06-21 23:52:50 UTC (rev 202306)
@@ -3,6 +3,14 @@
Unreviewed, attempt to fix the build after r202303.
* bindings/js/JSDOMIterator.h:
+ (WebCore::IteratorInspector::decltype):
+ (WebCore::IteratorInspector::test):
+
+2016-06-21 Chris Dumez <[email protected]>
+
+ Unreviewed, attempt to fix the build after r202303.
+
+ * bindings/js/JSDOMIterator.h:
(WebCore::toJS):
2016-06-21 Jiewen Tan <[email protected]>
Modified: trunk/Source/WebCore/bindings/js/JSDOMIterator.h (202305 => 202306)
--- trunk/Source/WebCore/bindings/js/JSDOMIterator.h 2016-06-21 23:47:55 UTC (rev 202305)
+++ trunk/Source/WebCore/bindings/js/JSDOMIterator.h 2016-06-21 23:52:50 UTC (rev 202306)
@@ -60,6 +60,16 @@
void finishCreation(JSC::VM&, JSC::JSGlobalObject*);
};
+template<typename IteratorValue>
+class IteratorInspector {
+private:
+ template<typename T> static constexpr auto test(int) -> decltype(std::declval<T>()->key, std::declval<T>()->value, bool()) { return true; }
+ template<typename T> static constexpr bool test(...) { return false; }
+public:
+ static constexpr bool isMap = test<IteratorValue>(0);
+ static constexpr bool isSet = !isMap;
+};
+
enum class IterationKind { Key, Value, KeyValue };
template<typename JSWrapper>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes