Re: more JSON spec questions

2009-08-27 Thread Robert Sayre
On Wed, Aug 26, 2009 at 11:03 PM, Allen Wirfs-Brockallen.wirfs-br...@microsoft.com wrote: At this point it’s hard to say whether or not the exact handling of this specific edge case was intentional or not. I think it is obvious. The list of keys is built before iteration takes place for a

Re: JSON parser grammar

2009-06-03 Thread Robert Sayre
symbol? If so, then I agree. Yes. Then we are in agreement. OK, so, all such deviations will be considered bugs by implementations that purport to conform. Right? -- Robert Sayre I would have written a shorter letter, but I did not have the time

Re: JSON parser grammar

2009-06-02 Thread Robert Sayre
. JSON.parse([010]) should be an error, per spec. Nobody follows the spec though... -- Robert Sayre I would have written a shorter letter, but I did not have the time. ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org

JSON.stringify 15.12.3, Str algorithm 9a

2009-03-05 Thread Robert Sayre
In describing the abstract operation Str(key, holder), the spec says 9. If Type(value) is number a. If value is finite then return value. b. else, return null Perhaps I am misreading, but this looks like a bug to me, since Str should return a string. -- Robert Sayre I would have written

Re: Preliminary draft of ES-Harmony modules proposal

2009-02-12 Thread Robert Sayre
. There's a little too much pushing of complexity onto users of the proposal. -- Robert Sayre I would have written a shorter letter, but I did not have the time. ___ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss

Changes to apply/call this coercion (was: ES3.1 Draft: 27 Oct 2008 version available)

2008-10-27 Thread Robert Sayre
, []); f.apply(null, []); f.call(undefined); f.call(null); var obj = {foo: qux}; g.apply(obj, []); g.apply(obj, []); g.call(obj); g.call(obj); } testApplyAndCall(); - Rob -- Robert Sayre I would have written a shorter letter, but I did not have

Re: ES3.1 draft, 13 Oct 2008 --15.9.5.43 Date.prototype.toISOString ( )

2008-10-17 Thread Robert Sayre
, Robert Sayre [EMAIL PROTECTED] wrote: This section doesn't address the precision to which the date should be printed. -- Robert Sayre I would have written a shorter letter, but I did not have the time. -- Robert Sayre I would have written a shorter letter, but I did not have the time

ES3.1 draft, 13 Oct 2008 --15.9.5.43 Date.prototype.toISOString ( )

2008-10-16 Thread Robert Sayre
This section doesn't address the precision to which the date should be printed. -- Robert Sayre I would have written a shorter letter, but I did not have the time. ___ Es-discuss mailing list Es-discuss@mozilla.org https://mail.mozilla.org/listinfo

JSON encoding and decoding of non-objects

2008-10-08 Thread Robert Sayre
and consume strings like 4.2, as does IE8. What gives? I feel like I'm reverse engineering IE8, which is not supposed to be the point here. -- Robert Sayre I would have written a shorter letter, but I did not have the time. ___ Es-discuss mailing list Es