HandleArrayReduce.cs

GitHub Gist: instantly share code, notes, and snippets.

Gist

Next stop: #Stack-based #JavaScript #VM in #CSharp / #DotNet?

Reason I'm not going for #Jint? It has the same flaw JavaScript has with #Date: It doesn't preserve #Timezone information.
This parser strips the Date-constructor, and just emits a #JSON-property with the literal string passed to Date.

I.e.

{ A: new Date("yyyy-mm-ddThh:mm:ss[(+-)Offset]" }

becomes

{ "A": "yyyy-mm-ddThh:mm:ss[(+-)Offset]" }