Title: [231226] trunk/Source/WebCore
Revision
231226
Author
[email protected]
Date
2018-05-01 23:26:35 -0700 (Tue, 01 May 2018)

Log Message

Unreviewed, fix build in WinCairo
https://bugs.webkit.org/show_bug.cgi?id=185169

* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::instantiateStreaming):
* bindings/js/JSDOMWindowBase.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (231225 => 231226)


--- trunk/Source/WebCore/ChangeLog	2018-05-02 06:16:16 UTC (rev 231225)
+++ trunk/Source/WebCore/ChangeLog	2018-05-02 06:26:35 UTC (rev 231226)
@@ -1,5 +1,14 @@
 2018-05-01  Yusuke Suzuki  <[email protected]>
 
+        Unreviewed, fix build in WinCairo
+        https://bugs.webkit.org/show_bug.cgi?id=185169
+
+        * bindings/js/JSDOMWindowBase.cpp:
+        (WebCore::JSDOMWindowBase::instantiateStreaming):
+        * bindings/js/JSDOMWindowBase.h:
+
+2018-05-01  Yusuke Suzuki  <[email protected]>
+
         Use default std::optional if it is provided
         https://bugs.webkit.org/show_bug.cgi?id=185159
 

Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp (231225 => 231226)


--- trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp	2018-05-02 06:16:16 UTC (rev 231225)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp	2018-05-02 06:26:35 UTC (rev 231226)
@@ -80,8 +80,13 @@
     &moduleLoaderEvaluate,
     &promiseRejectionTracker,
     &defaultLanguage,
+#if ENABLE(WEBASSEMBLY)
     &compileStreaming,
-    &instantiateStreaming
+    &instantiateStreaming,
+#else
+    nullptr,
+    nullptr,
+#endif
 };
 
 JSDOMWindowBase::JSDOMWindowBase(VM& vm, Structure* structure, RefPtr<DOMWindow>&& window, JSWindowProxy* proxy)
@@ -490,18 +495,6 @@
     } else
         promise->reject(exec, createTypeError(exec, ASCIILiteral("first argument must be an Response or Promise for Response")));
 }
-#else
-NO_RETURN_DUE_TO_ASSERT
-void JSDOMWindowBase::compileStreaming(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSPromiseDeferred*, JSC::JSValue)
-{
-    ASSERT_NOT_REACHED();
-}
-
-NO_RETURN_DUE_TO_ASSERT
-void JSDOMWindowBase::instantiateStreaming(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSPromiseDeferred*, JSC::JSValue, JSC::JSObject*)
-{
-    ASSERT_NOT_REACHED();
-}
 #endif
 
 void JSDOMWindowBase::promiseRejectionTracker(JSGlobalObject* jsGlobalObject, ExecState* exec, JSPromise* promise, JSPromiseRejectionOperation operation)

Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowBase.h (231225 => 231226)


--- trunk/Source/WebCore/bindings/js/JSDOMWindowBase.h	2018-05-02 06:16:16 UTC (rev 231225)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowBase.h	2018-05-02 06:26:35 UTC (rev 231226)
@@ -97,8 +97,10 @@
     static JSC::JSInternalPromise* moduleLoaderImportModule(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSModuleLoader*, JSC::JSString*, JSC::JSValue, const JSC::SourceOrigin&);
     static JSC::JSObject* moduleLoaderCreateImportMetaProperties(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSModuleLoader*, JSC::JSValue, JSC::JSModuleRecord*, JSC::JSValue);
 
+#if ENABLE(WEBASSEMBLY)
     static void compileStreaming(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSPromiseDeferred*, JSC::JSValue);
     static void instantiateStreaming(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSPromiseDeferred*, JSC::JSValue, JSC::JSObject*);
+#endif
 
     static void promiseRejectionTracker(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSPromise*, JSC::JSPromiseRejectionOperation);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to