From d1fe93a71a6eff6ada96e2866c28ddec1b52fb99 Mon Sep 17 00:00:00 2001
From: test262-automation <test262-automation@bocoup.com>
Date: Tue, 25 Sep 2018 18:31:32 +0000
Subject: [PATCH] [v8-test262-automation] Changes from
 https://github.com/v8/v8.git at sha 1e6d9607 on Tue Sep 25 2018 18:31:03
 GMT+0000 (Coordinated Universal Time)

---
 .../v8/intl/general/getCanonicalLocales.js                   | 4 +++-
 .../v8/mjsunit/regress/regress-crbug-888825.js               | 5 +++++
 implementation-contributed/v8/test262/test262.status         | 4 ----
 3 files changed, 8 insertions(+), 5 deletions(-)
 create mode 100644 implementation-contributed/v8/mjsunit/regress/regress-crbug-888825.js

diff --git a/implementation-contributed/v8/intl/general/getCanonicalLocales.js b/implementation-contributed/v8/intl/general/getCanonicalLocales.js
index 0df6846ce6..9bec67f581 100644
--- a/implementation-contributed/v8/intl/general/getCanonicalLocales.js
+++ b/implementation-contributed/v8/intl/general/getCanonicalLocales.js
@@ -10,4 +10,6 @@ assertDoesNotThrow(() => Intl.getCanonicalLocales("en-a-ca-Chinese-u-ca-Chinese"
 
 // Check duplicate subtags (after the first tag) are detected.
 assertThrows(() => Intl.getCanonicalLocales("en-foobar-foobar"), RangeError);
-assertThrows(() => Intl.getCanonicalLocales("en-u-ca-gregory-ca-chinese"), RangeError);
+
+// Duplicate subtags are valid as per the ECMA262 spec.
+assertDoesNotThrow(() => Intl.getCanonicalLocales("en-u-ca-gregory-ca-chinese"));
diff --git a/implementation-contributed/v8/mjsunit/regress/regress-crbug-888825.js b/implementation-contributed/v8/mjsunit/regress/regress-crbug-888825.js
new file mode 100644
index 0000000000..9aa52d62e1
--- /dev/null
+++ b/implementation-contributed/v8/mjsunit/regress/regress-crbug-888825.js
@@ -0,0 +1,5 @@
+// Copyright 2018 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.
+
+eval("((a=function g() { function g() {}}) => {})();");
diff --git a/implementation-contributed/v8/test262/test262.status b/implementation-contributed/v8/test262/test262.status
index f0a57efb35..a2cc51b1ea 100644
--- a/implementation-contributed/v8/test262/test262.status
+++ b/implementation-contributed/v8/test262/test262.status
@@ -586,7 +586,6 @@
   'intl402/Locale/constructor-parse-twice': [FAIL],
   'intl402/Locale/constructor-tag': [FAIL],
   'intl402/Locale/constructor-unicode-ext-invalid': [FAIL],
-  'intl402/Locale/constructor-unicode-ext-valid': [FAIL],
   'intl402/Locale/extensions-grandfathered': [FAIL],
   'intl402/Locale/extensions-private': [FAIL],
   'intl402/Locale/getters': [FAIL],
@@ -608,9 +607,6 @@
   'language/expressions/async-generator/generator-created-after-decl-inst': [FAIL],
   'language/statements/async-generator/generator-created-after-decl-inst': [FAIL],
 
-  # https://bugs.chromium.org/p/chromium/issues/detail?id=865351
-  'intl402/DateTimeFormat/prototype/formatToParts/main': [FAIL],
-
   # https://bugs.chromium.org/p/v8/issues/detail?id=8099
   'intl402/NumberFormat/prototype/format/format-negative-numbers': [FAIL],
 
-- 
GitLab