1
1
diff --git a/node_modules/intl/lib/core.js b/node_modules/intl/lib/core.js
2
- index 9334cfc..4525a08 100644
2
+ index 9334cfc..552a228 100644
3
3
--- a/node_modules/intl/lib/core.js
4
4
+++ b/node_modules/intl/lib/core.js
5
5
@@ -540,7 +540,7 @@ function createRegExpRestore() {
@@ -11,11 +11,24 @@ index 9334cfc..4525a08 100644
11
11
multiline: RegExp.multiline,
12
12
input: RegExp.input
13
13
},
14
- @@ -4291,6 +4291,7 @@ defineProperty(Intl, '__applyLocaleSensitivePrototypes', {
14
+ @@ -4291,6 +4291,12 @@ defineProperty(Intl, '__applyLocaleSensitivePrototypes', {
15
15
writable: true,
16
16
configurable: true,
17
17
value: function value() {
18
- + return null;
18
+ + return null;
19
+ + /*
20
+ + XXX: These are mutating Number and Date prototypes which is blocked by SES, causing the app to crash.
21
+ + Since we're not using toLocaleString anywhere in our code, I'm just returning `null` here.
22
+ + */
23
+ + /*
19
24
defineProperty(Number.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Number.toLocaleString });
20
25
// Need this here for IE 8, to avoid the _DontEnum_ bug
21
26
defineProperty(Date.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Date.toLocaleString });
27
+ @@ -4298,6 +4304,7 @@ defineProperty(Intl, '__applyLocaleSensitivePrototypes', {
28
+ for (var k in ls.Date) {
29
+ if (hop.call(ls.Date, k)) defineProperty(Date.prototype, k, { writable: true, configurable: true, value: ls.Date[k] });
30
+ }
31
+ + */
32
+ }
33
+ });
34
+
0 commit comments