Skip to content

Commit 51623bb

Browse files
committed
test: document XS issue (in code unused on XS)
1 parent 30e50d5 commit 51623bb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/utf8.hermes.test.cjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ if (globalThis.HermesInternal) {
1010
globalThis.HermesInternal = true
1111
}
1212

13-
require('./utf8.lib.test.js')
13+
if (process.env.EXODUS_TEST_PLATFORM === 'xs') {
14+
// https://github.com/Moddable-OpenSource/moddable/issues/1562
15+
// escape() path is used only on Hermes, not XS
16+
// this test cross-tests that the Hermes path logic works on all engines
17+
// but it doesn't on XS due to XS bug
18+
require('node:test').test.skip('Known bug on XS escape(), path not used')
19+
} else {
20+
require('./utf8.lib.test.js')
21+
}

0 commit comments

Comments
 (0)