Fix bug in function context slot lookup. There were two problems: we
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 11 Sep 2008 13:00:30 +0000 (13:00 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 11 Sep 2008 13:00:30 +0000 (13:00 +0000)
commit888abb1bfd5be1cf185037285d963151a8584901
tree5abaa014d5ee672fb8baa5216a4b748e966ec1a4
parent9d3557ef999b25e6520ec33252e07594fa3a661b
Fix bug in function context slot lookup.  There were two problems: we
read at the wrong index in the scope information and we forgot to add
Context::MIN_CONTEXT_SLOTS to the index.

This fixes issue 24.
Review URL: http://codereview.chromium.org/1938

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@279 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/log.cc
src/log.h
src/scopeinfo.cc
test/mjsunit/with-function-expression.js [new file with mode: 0644]