summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-hosting/intl-fallback-original.js
blob: ab1ec63b28017f38179b6ef578d22fa2087fd132 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| skip-if: typeof Intl === 'undefined'; skip-if: getBuildConfiguration("wasi")

// Clobbering `Symbol` should not impact creation of %Intl%.[[FallbackSymbol]]
globalThis.Symbol = null;

const IntlFallbackSymbol =
        Object.getOwnPropertySymbols(
                Intl.DateTimeFormat.call(
                        Object.create(Intl.DateTimeFormat.prototype)))[0];