Don't lookup the cache for the result of Function::New
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Sep 2013 14:50:01 +0000 (14:50 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Sep 2013 14:50:01 +0000 (14:50 +0000)
commitbe8621a457ef09b6ad0d8f4c21955a3b10a6bad8
treebdbad5b522b9c80c4e0391427266b9c0c11f019e
parentbf345f022e383053eb5a8b6c8b93d2ed58336adf
Don't lookup the cache for the result of Function::New

Since isFunctionCached condition is wrong, we lookup the cache even if
doNotCache is true. As a result, Function::New always returns null
except for the first time.

BUG=272579
R=dcarney@chromium.org, mstarzinger@chromium.org, yhirano@chromium.org

Review URL: https://codereview.chromium.org/23513048

Patch from Yusuke Suzuki <yusukesuzuki@chromium.org>.

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