Reviewers: Kevin Millikin, Description: Change behavior of global declarations in the presence of setters.
Call accessors in the global object prototype when initializing global variables. Function declarations are special cased for compatibility with Safari and setters are not called for them. If this special casing was not done webkit layout tests would fail. Make the declaration of global const variables in the presence of callbacks a redeclaration error. Handle const context slot declarations conflicting with a CALLBACK as a redeclaration error. That is, unless it is on a context extension object which is not a real object and therefore conceptually have no accessors in prototype chains. Accessors in prototype chains of context extension objects are explicitly ignored in SetProperty. Please review this at http://codereview.chromium.org/6534029/ SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge Affected files: M src/runtime.cc M test/cctest/test-decls.cc A + test/mjsunit/regress/regress-1170.js -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
