Skip to content

Commit

Permalink
Set SES lockdown error taming to unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Jan 26, 2024
1 parent ea21001 commit a0ce650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patches/react-native+0.71.15.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/react-native/Libraries/Core/InitializeCore.js b/node_modules/react-native/Libraries/Core/InitializeCore.js
index 1379ffd..a991485 100644
index 1379ffd..35cfe3f 100644
--- a/node_modules/react-native/Libraries/Core/InitializeCore.js
+++ b/node_modules/react-native/Libraries/Core/InitializeCore.js
@@ -24,26 +24,53 @@
Expand All @@ -23,7 +23,7 @@ index 1379ffd..a991485 100644
+ * Nb: global.process is only partially shimmed, which confuses SES
+ * Nb: All are Unhandled JS Exceptions, since we call lockdown before setUpErrorHandling
+ */
+ repairIntrinsics({ consoleTaming: 'unsafe', errorTrapping: 'none', unhandledRejectionTrapping: 'none', overrideTaming: 'severe' });
+ repairIntrinsics({ errorTaming: 'unsafe', consoleTaming: 'unsafe', errorTrapping: 'none', unhandledRejectionTrapping: 'none', overrideTaming: 'severe' });
+ require('reflect-metadata'); // Vetted shim required to fix: https://github.com/LavaMoat/docs/issues/26
+ hardenIntrinsics();
+}
Expand Down Expand Up @@ -187,4 +187,4 @@ index 290bd23..20d85e0 100644
+ }
}
return inputConnection;
}
}

0 comments on commit a0ce650

Please sign in to comment.