Commit a31bd4cb authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[Intl] Change PluralRules.prototype.resolvedOptions to return newly created...

[Intl] Change PluralRules.prototype.resolvedOptions to return newly created array for pluralCategories

Test: test262/intl402/PluralRules/prototype/resolvedOptions/pluralCategories

Bug: v8:7830
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Ie527f51fab67e63cf5bf56a1da883a3e16ce48ac
Reviewed-on: https://chromium-review.googlesource.com/1132339Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54477}
parent 3dd5c6fe
...@@ -29,6 +29,7 @@ var GlobalIntlv8BreakIterator = GlobalIntl.v8BreakIterator; ...@@ -29,6 +29,7 @@ var GlobalIntlv8BreakIterator = GlobalIntl.v8BreakIterator;
var GlobalNumber = global.Number; var GlobalNumber = global.Number;
var GlobalRegExp = global.RegExp; var GlobalRegExp = global.RegExp;
var GlobalString = global.String; var GlobalString = global.String;
var GlobalArray = global.Array;
var IntlFallbackSymbol = utils.ImportNow("intl_fallback_symbol"); var IntlFallbackSymbol = utils.ImportNow("intl_fallback_symbol");
var InternalArray = utils.InternalArray; var InternalArray = utils.InternalArray;
var MathMax = global.Math.max; var MathMax = global.Math.max;
...@@ -38,6 +39,7 @@ var patternSymbol = utils.ImportNow("intl_pattern_symbol"); ...@@ -38,6 +39,7 @@ var patternSymbol = utils.ImportNow("intl_pattern_symbol");
var resolvedSymbol = utils.ImportNow("intl_resolved_symbol"); var resolvedSymbol = utils.ImportNow("intl_resolved_symbol");
var StringSubstr = GlobalString.prototype.substr; var StringSubstr = GlobalString.prototype.substr;
var StringSubstring = GlobalString.prototype.substring; var StringSubstring = GlobalString.prototype.substring;
var ArraySlice = GlobalArray.prototype.slice;
utils.Import(function(from) { utils.Import(function(from) {
ArrayJoin = from.ArrayJoin; ArrayJoin = from.ArrayJoin;
...@@ -1207,8 +1209,7 @@ DEFINE_METHOD( ...@@ -1207,8 +1209,7 @@ DEFINE_METHOD(
} }
defineWECProperty(result, 'pluralCategories', defineWECProperty(result, 'pluralCategories',
this[resolvedSymbol].pluralCategories); %_Call(ArraySlice, this[resolvedSymbol].pluralCategories));
return result; return result;
} }
); );
......
...@@ -503,9 +503,6 @@ ...@@ -503,9 +503,6 @@
# https://bugs.chromium.org/p/v8/issues/detail?id=7781 # https://bugs.chromium.org/p/v8/issues/detail?id=7781
'built-ins/Date/parse/time-value-maximum-range': [FAIL], 'built-ins/Date/parse/time-value-maximum-range': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=7830
'intl402/PluralRules/prototype/resolvedOptions/pluralCategories': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=7831 # https://bugs.chromium.org/p/v8/issues/detail?id=7831
'language/statements/generators/generator-created-after-decl-inst': [FAIL], 'language/statements/generators/generator-created-after-decl-inst': [FAIL],
'language/expressions/generators/generator-created-after-decl-inst': [FAIL], 'language/expressions/generators/generator-created-after-decl-inst': [FAIL],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment