summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-hosting/intl-fallback-original.js
blob: 456084d5d6adecfc2aca25255feee1aa0dc6cab8 (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];