Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Issue 2582993002: [intl] Add new semantics + compat fallback to Intl constructor (Closed)

Created:
4 years ago by Dan Ehrenberg
Modified:
3 years, 12 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com, adamk, petermarshall, jungshik at Google
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[intl] Add new semantics + compat fallback to Intl constructor ECMA 402 v2 made Intl constructors more strict in terms of how they would initialize objects, refusing to initialize objects which have already been constructed. However, when Chrome tried to ship these semantics, we ran into web compatibility issues. This patch tries to square the circle and implement the simpler v2 object semantics while including a compatibility workaround to allow objects to sort of be initialized later, storing the real underlying Intl object in a symbol-named property. The new semantics are described in this PR against the ECMA 402 spec: https://github.com/tc39/ecma402/pull/84 BUG=v8:4360, v8:4870 LOG=Y Review-Url: https://codereview.chromium.org/2582993002 Cr-Commit-Position: refs/heads/master@{#41943} Committed: https://chromium.googlesource.com/v8/v8/+/b0a09d78095b49ce7d3551032a65f707456c1f27

Patch Set 1 #

Patch Set 2 : interpreter expectations #

Patch Set 3 : Fix test262 expectations #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : reformatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -92 lines) Patch
M src/heap-symbols.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/js/i18n.js View 1 2 3 4 13 chunks +80 lines, -80 lines 0 comments Download
M src/messages.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M test/intl/assert.js View 1 chunk +3 lines, -3 lines 0 comments Download
A test/intl/general/constructor.js View 1 chunk +44 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-4870.js View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 30 (24 generated)
Dan Ehrenberg
4 years ago (2016-12-18 09:21:58 UTC) #9
Dan Ehrenberg
Yang, do you think you could take a look? Previously this was addressed to Peter, ...
4 years ago (2016-12-20 15:59:10 UTC) #18
Yang
lgtm https://codereview.chromium.org/2582993002/diff/60001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2582993002/diff/60001/src/js/i18n.js#newcode61 src/js/i18n.js:61: function AddBoundMethod(obj, methodName, implementation, length, typename, compat) { ...
3 years, 12 months ago (2016-12-23 09:05:46 UTC) #23
Dan Ehrenberg
https://codereview.chromium.org/2582993002/diff/60001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2582993002/diff/60001/src/js/i18n.js#newcode61 src/js/i18n.js:61: function AddBoundMethod(obj, methodName, implementation, length, typename, compat) { On ...
3 years, 12 months ago (2016-12-23 14:01:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2582993002/80001
3 years, 12 months ago (2016-12-23 14:02:05 UTC) #27
commit-bot: I haz the power
3 years, 12 months ago (2016-12-23 14:32:22 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/b0a09d78095b49ce7d3551032a65f707456...

Powered by Google App Engine
This is Rietveld 408576698