DescriptionAdd 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.
BUG=v8:4360, v8:4870
LOG=Y
R=adamk
Patch Set 1 #Patch Set 2 : Test and better checking #Patch Set 3 : Simplify tests #Patch Set 4 : Add tests; make more minimal #
Messages
Total messages: 5 (3 generated)
|