diff options
Diffstat (limited to 'deps/v8/test/intl/locale/locale-constructor.js')
-rw-r--r-- | deps/v8/test/intl/locale/locale-constructor.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/test/intl/locale/locale-constructor.js b/deps/v8/test/intl/locale/locale-constructor.js index 170cc81c36..3da9e291be 100644 --- a/deps/v8/test/intl/locale/locale-constructor.js +++ b/deps/v8/test/intl/locale/locale-constructor.js @@ -9,6 +9,11 @@ assertThrows(() => Intl.Locale('sr'), TypeError); // Non-string locale. assertThrows(() => new Intl.Locale(5), TypeError); +assertThrows(() => new Intl.Locale(Symbol()), TypeError); +assertThrows(() => new Intl.Locale(null), TypeError); +assertThrows(() => new Intl.Locale(undefined), TypeError); +assertThrows(() => new Intl.Locale(false), TypeError); +assertThrows(() => new Intl.Locale(true), TypeError); // Invalid locale string. assertThrows(() => new Intl.Locale('abcdefghi'), RangeError); |