diff options
author | David Dios <dios.david@thedevcore.net> | 2024-08-14 09:46:56 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-08-14 11:24:17 +0200 |
commit | 02d348e4da1bc25b90a25c2d004421b92013a8ab (patch) | |
tree | 3d8fffad6a8085009061c9edd75241d822d5fede /src/gleam_stdlib.mjs | |
parent | 9205a432dee3493e2545ee56f1e17d8bcdb7f5a5 (diff) | |
download | gleam_stdlib-02d348e4da1bc25b90a25c2d004421b92013a8ab.tar.gz gleam_stdlib-02d348e4da1bc25b90a25c2d004421b92013a8ab.zip |
change to check globalThis.Intl
Diffstat (limited to 'src/gleam_stdlib.mjs')
-rw-r--r-- | src/gleam_stdlib.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam_stdlib.mjs b/src/gleam_stdlib.mjs index 35d2f7d..157f66d 100644 --- a/src/gleam_stdlib.mjs +++ b/src/gleam_stdlib.mjs @@ -156,7 +156,7 @@ export function graphemes(string) { } function graphemes_iterator(string) { - if (typeof Intl !== 'undefined' && Intl.Segmenter) { + if (globalThis.Intl && Intl.Segmenter) { return new Intl.Segmenter().segment(string)[Symbol.iterator](); } } |