Make sure that the body of the function created by calling Function is
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Sep 2008 07:35:45 +0000 (07:35 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Sep 2008 07:35:45 +0000 (07:35 +0000)
commitff4e9ea134eb592890c9f8c599e5ffd83cd9f47f
tree3ed528b903fc83536f3c29077e0118a1aa67a059
parent222c7cd957ea7be31701172e8f66e4c31d0aa3f4
Make sure that the body of the function created by calling Function is
on a line of its own.  This allows the body to be terminated by a
single-line comment.

Also, make sure to set the name of the function to anonymous after the
fact so that recursion through the name anonymous is not allowed and
so that global variables called anonymous are not shadowed.

This is a fix for http://code.google.com/p/v8/issues/detail?id=85
Review URL: http://codereview.chromium.org/4248

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@370 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler.cc
src/compiler.h
src/debug-delay.js
src/runtime.cc
src/runtime.h
src/v8natives.js
test/mjsunit/function.js