Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1660)

Unified Diff: src/js/proxy.js

Issue 1491893002: [proxies] Implement the Proxy constructor in C++ fully. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BuiltinsExtraArguments
Patch Set: Address feedback. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/proxy.js
diff --git a/src/js/proxy.js b/src/js/proxy.js
index d21029687136a8ef5b2029c1bde08dfc457dc432..2750d40e272f27d3b0a49a0897e25cfbacf2f649 100644
--- a/src/js/proxy.js
+++ b/src/js/proxy.js
@@ -15,22 +15,13 @@ var GlobalProxy = global.Proxy;
var GlobalFunction = global.Function;
var GlobalObject = global.Object;
var MakeTypeError;
-var ToNameArray;
utils.Import(function(from) {
MakeTypeError = from.MakeTypeError;
- ToNameArray = from.ToNameArray;
});
//----------------------------------------------------------------------------
-function ProxyCreate(target, handler) {
- if (IS_UNDEFINED(new.target)) {
- throw MakeTypeError(kConstructorNotFunction, "Proxy");
- }
- return %CreateJSProxy(target, handler);
-}
-
function ProxyCreateFunction(handler, callTrap, constructTrap) {
if (!IS_SPEC_OBJECT(handler))
throw MakeTypeError(kProxyHandlerNonObject, "createFunction")
@@ -150,7 +141,6 @@ function ProxyEnumerate(trap, handler, target) {
}
//-------------------------------------------------------------------
-%SetCode(GlobalProxy, ProxyCreate);
//Set up non-enumerable properties of the Proxy object.
utils.InstallFunctions(GlobalProxy, DONT_ENUM, [
« no previous file with comments | « src/builtins.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698