Reviewers: Vyacheslav Egorov,
Description:
Make (some) functions called from builtin functions use the callback's
global as
receiver.
Changes GetGlobalReceiver() to GetDefaultReceiver(func) that returns
undefined
for strict and native functions, and the function's context's global proxy
for "normal" functions.
BUG=v8:1547
TEST=cctest/api-test/ForeignFunctionReceiver
Please review this at http://codereview.chromium.org/7741042/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/arm/full-codegen-arm.cc
src/array.js
src/hydrogen.cc
M src/ia32/full-codegen-ia32.cc
M src/mips/full-codegen-mips.cc
M src/runtime.h
M src/runtime.cc
M src/string.js
src/x64/full-codegen-x64.cc
M test/cctest/test-api.cc
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev