377f182b48
harmony-locale is shipped in m74 and m74 is already out. Remove harmony-locale flag from the code. Bug: v8:8910 Change-Id: If9634b6767cfe449cfa03980bbad26ceb7408c79 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1592465 Commit-Queue: Frank Tang <ftang@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/master@{#61429}
21 lines
743 B
JavaScript
21 lines
743 B
JavaScript
// Copyright 2019 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Make sure that accessing locale property will return undefined instead of
|
|
// crash.
|
|
|
|
let locale = new Intl.Locale('sr');
|
|
|
|
assertEquals('sr', locale.toString());
|
|
assertEquals('sr', locale.baseName);
|
|
assertEquals('sr', locale.language);
|
|
assertEquals(undefined, locale.script);
|
|
assertEquals(undefined, locale.region);
|
|
assertEquals(false, locale.numeric);
|
|
assertEquals(undefined, locale.calendar);
|
|
assertEquals(undefined, locale.collation);
|
|
assertEquals(undefined, locale.hourCycle);
|
|
assertEquals(undefined, locale.caseFirst);
|
|
assertEquals(undefined, locale.numberingSystem);
|