I lost my client already, reconstructing the patch.
http://codereview.chromium.org/60035/diff/1/2 File test/cctest/test-api.cc (left): http://codereview.chromium.org/60035/diff/1/2#oldcode4561 Line 4561: // Try something that will cause an exception: Call the object as a This needs to be tested by a layout test. V8 treats construct call and function call as the same if an object can be called as the function. Like I said in TODO: V8 needs to pass different flags to the callback function, or make two different API for callAsFunction and callAsConstruct. On 2009/04/28 10:50:15, Mads Ager wrote: > Please add a test case for the intended behavior of construct calls. http://codereview.chromium.org/60035 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
