Updates:
        Status: WorkingAsIntended
        Owner: [email protected]

Comment #1 on issue 2171 by [email protected]: toString() doesn't return an equivalent representation if strict mode is inherited
http://code.google.com/p/v8/issues/detail?id=2171

ECMA-262 specifies that Function.prototype.toString() is implementation-dependent, so you should not rely on it. In V8, we chose to simply return the source code including all comments. Firefox apparently reconstructs the source code from the AST, thereby also stripping all comments, but adding "use strict" where it deems necessary.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to