Minor nit/conceivable erratum-let in 15.12.3 Quote
allen at wirfs-brock.com
Thu Mar 17 18:16:13 PDT 2011
Unintentional under specification. You should file a bug at bugs.ecmascript.org
On Mar 17, 2011, at 5:34 PM, Jeff Walden wrote:
> Per spec which is correct behavior?
> assert(JSON.stringify("\u000E") === '"\\u000E"');
> assert(JSON.stringify("\u000E") === '"\\u000e"');
> The spec says this: "Let hex be the result of converting the numeric code unit value of C to a String of four hexadecimal digits." That seems to permit either -- but why do so? It's harder to test, and I can't think of a good reason why implementations could want to make different choices here.
> Every browser I can test escapes to lowercase hex, so it seems best to require the produced hexadecimal digits to be lowercase.
> I stumbled across this because http://hg.ecmascript.org/tests/test262/file/ee75c6254247/test/suite/ietestcenter/chapter15/15.12/15.12.3/15.12.3-11-19.js happens to encode the must-be-lowercase restriction (we happen to fail it for other reasons).
> es5-discuss mailing list
> es5-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es5-discuss