Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index e1cd390d7bc612c9a0cadcc166f79f1cad4a32cd..ddcba5987d18b22d94f216b37e852844caf217c3 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -997,7 +997,7 @@ MaybeHandle<Object> JSProxy::GetPrototype(Handle<JSProxy> proxy) { |
| if (is_extensible.FromJust()) return handler_proto; |
| // 11. Let targetProto be ? target.[[GetPrototypeOf]](). |
| Handle<Object> target_proto; |
| - ASSIGN_RETURN_ON_EXCEPTION(isolate, handler_proto, |
| + ASSIGN_RETURN_ON_EXCEPTION(isolate, target_proto, |
|
Jakob Kummerow
2015/12/07 15:55:07
Why did existing tests not catch this? Maybe add a
Camillo Bruni
2015/12/07 16:54:10
kept a note. will do in a separate cl.
|
| Object::GetPrototype(isolate, target), Object); |
| // 12. If SameValue(handlerProto, targetProto) is false, throw a TypeError. |
| if (!handler_proto->SameValue(*target_proto)) { |