Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 28fdd4ed01c25b25e7f86f33c443cac8b520089a..266ecff1d3f16ce00ebcc500f23f8cb5d72b6f29 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1937,13 +1937,12 @@ Handle<JSDataView> Factory::NewJSDataView(Handle<JSArrayBuffer> buffer, |
Handle<JSProxy> Factory::NewJSProxy(Handle<JSReceiver> target, |
- Handle<JSReceiver> handler, |
- Handle<Object> prototype) { |
+ Handle<JSReceiver> handler) { |
// Allocate map. |
// TODO(rossberg): Once we optimize proxies, think about a scheme to share |
// maps. Will probably depend on the identity of the handler object, too. |
Handle<Map> map = NewMap(JS_PROXY_TYPE, JSProxy::kSize); |
- Map::SetPrototype(map, prototype); |
+ Map::SetPrototype(map, null_value()); |
// Allocate the proxy object. |
Handle<JSProxy> result = New<JSProxy>(map, NEW_SPACE); |