We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac9396 commit 12eec3dCopy full SHA for 12eec3d
1 file changed
bundler/modules/globals.cjs
@@ -70,6 +70,14 @@ if (!Array.prototype.at) {
70
}
71
72
if (process.env.EXODUS_TEST_PLATFORM === 'hermes') {
73
+ // Refuse to run if block scoped vars are fake
74
+ const r = []
75
+ for (let key of [1, 2]) r.push(() => key) // eslint-disable-line prefer-const
76
+ if (r[0]() === r[1]()) {
77
+ print('‼ FATAL Fake block-scoped vars support detected')
78
+ throw new Error('Refusing to run')
79
+ }
80
+
81
// Fixed after 0.12, not present in 0.12
82
// Refs: https://github.com/facebook/hermes/commit/e8fa81328dd630e39975e6d16ac3e6f47f4cba06
83
if (!Promise.allSettled) {
0 commit comments