Revision: 9515
Author: [email protected]
Date: Tue Oct 4 05:48:16 2011
Log: Remove two left-over uses of Function.prototype.apply that I
overlooked when merging proxy CLs.
[email protected]
BUG=
TEST=
Review URL: http://codereview.chromium.org/8116027
http://code.google.com/p/v8/source/detail?r=9515
Modified:
/branches/bleeding_edge/src/proxy.js
=======================================
--- /branches/bleeding_edge/src/proxy.js Fri Sep 16 05:26:29 2011
+++ /branches/bleeding_edge/src/proxy.js Tue Oct 4 05:48:16 2011
@@ -47,7 +47,7 @@
} else if (IS_SPEC_FUNCTION(constructTrap)) {
construct = function() {
// Make sure the trap receives 'undefined' as this.
- return $Function.prototype.apply.call(constructTrap, void 0,
arguments)
+ return %Apply(constructTrap, void 0, arguments,
0, %_ArgumentsLength());
}
} else {
throw MakeTypeError("trap_function_expected",
@@ -69,7 +69,7 @@
if (!IS_SPEC_OBJECT(proto)) proto = $Object.prototype
var obj = new $Object()
obj.__proto__ = proto
- var result = $Function.prototype.apply.call(callTrap, obj, arguments)
+ var result = %Apply(callTrap, obj, arguments, 0, %_ArgumentsLength());
return IS_SPEC_OBJECT(result) ? result : obj
}
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev