Strengthening Function.prototype.toString

liorean liorean at gmail.com
Fri Sep 26 10:58:27 PDT 2008


2008/9/26 Erik Arvidsson <erik.arvidsson at gmail.com>:
> I know that Opera on mobile phones used to return a string
> representation that did not reflect the original.

Yeah. Opera Mobile returned "[ECMAScript code]" or "[ecmascript
code]". This was contrary to the ES3 spec (must be parsable as a
function definition, IIRC) and also breaks the eval roundtripping by
throwing a parse error.
Anybody know if those issues have been fixed in more modern versions?
-- 
David "liorean" Andersson


More information about the Es-discuss mailing list