Yeah, you need to use %GetGlobalReceiver(). "global" will get you the actual global object and you want the proxy as the receiver here.
-- Mads On Wed, May 12, 2010 at 4:35 PM, <[email protected]> wrote: > drive-by > > > http://codereview.chromium.org/1994019/diff/1/2 > File src/string.js (right): > > http://codereview.chromium.org/1994019/diff/1/2#newcode522 > src/string.js:522: return %_CallFunction(global, s, index, subject, > replace); > On 2010/05/12 14:31:40, Lasse Reichstein wrote: >> >> Is "global" the correct receiver here? (Is it the global object or the > > global >> >> receiver?) > > I'd used %GlobalReceiver(). > > Funny, right now I am running performance tests on a patch which adds > those %_CallFunction to all the places I spotted with .call :) > > http://codereview.chromium.org/1994019/show > > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
