aboutsummaryrefslogtreecommitdiffstats
path: root/community/webkit2gtk/fix-fast-memory-disabled.patch
blob: 9d2747c7da8d3798d99b13199723b098e7ded540 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/Source/JavaScriptCore/wasm/WasmFaultSignalHandler.cpp
+++ b/Source/JavaScriptCore/wasm/WasmFaultSignalHandler.cpp
@@ -118,7 +118,11 @@ void unregisterCode(void* start, void* e
 
 bool fastMemoryEnabled()
 {
+#if ENABLE(WEBASSEMBLY_FAST_MEMORY)
     return fastHandlerInstalled;
+#else
+    return false;
+#endif // ENABLE(WEBASSEMBLY_FAST_MEMORY)
 }
 
 void enableFastMemory()