Make global variable initialization consistent with Firefox and Safari
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 2 Jul 2009 06:28:37 +0000 (06:28 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 2 Jul 2009 06:28:37 +0000 (06:28 +0000)
commitb95dbc3fdd66d8cbdb5df5d55bf764993ee529e2
tree36593807239b2e59e2d56823e8565c62e884dbee
parente75a173ff7b84e1ccc8712dbb96adfb589f0504d
Make global variable initialization consistent with Firefox and Safari
behavior.  Only force the introduction of a variable directly on the
global object if there is an explicit initial value in a variable
declaration.

BUG=http://crbug.com/12548
Review URL: http://codereview.chromium.org/151191

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2326 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
test/cctest/test-api.cc
test/cctest/test-decls.cc