This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Patch Realm to fix 'Realm is not defined' issues in Jest and Chrome Remote Debugger, see https://github.com/realm/realm-js/pull/3748 for more info | |
Formatting below is deliberately bad (e.g. not indenting the function) to minimise the patch and make it easier to understand if it needs altering for a later version of Realm | |
diff --git a/node_modules/realm/lib/collection-methods.js b/node_modules/realm/lib/collection-methods.js | |
index 0e1e395..0c52173 100644 | |
--- a/node_modules/realm/lib/collection-methods.js | |
+++ b/node_modules/realm/lib/collection-methods.js | |
@@ -18,6 +18,10 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS Version: iOS 14.2 (18B92) | |
Report Version: 104 | |
Exception Type: EXC_CRASH (SIGABRT) | |
Crashed Thread: 17 | |
Application Specific Information: | |
Call must be made on main thread | |
Thread 17 Crashed: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/parse5/lib/index.js b/node_modules/parse5/lib/index.js | |
index 9472a62..c7c232e 100644 | |
--- a/node_modules/parse5/lib/index.js | |
+++ b/node_modules/parse5/lib/index.js | |
@@ -35,10 +35,3 @@ exports.treeAdapters = { | |
default: require('./tree_adapters/default'), | |
htmlparser2: require('./tree_adapters/htmlparser2') | |
}; | |
- | |
- |