$OpenBSD: patch-mozilla_js_src_jit_ExecutableAllocator_h,v 1.1 2017/03/08 15:54:54 landry Exp $

https://gitweb.torproject.org/tor-browser.git/patch/?id=235c607f6bc39e124b9e8430092be249c3d64981

--- mozilla/js/src/jit/ExecutableAllocator.h.orig	Sun Mar  5 21:58:26 2017
+++ mozilla/js/src/jit/ExecutableAllocator.h	Wed Mar  8 14:06:00 2017
@@ -372,10 +372,12 @@ class ExecutableAllocator
 
     static void makeWritable(void* start, size_t size)
     {
+        ReprotectRegion(start, size, ProtectionSetting::Writable);
     }
 
     static void makeExecutable(void* start, size_t size)
     {
+        ReprotectRegion(start, size, ProtectionSetting::Executable);
     }
 
 #if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
