Revision: 19935
Author: [email protected]
Date: Fri Mar 14 14:17:49 2014 UTC
Log: Fix generalization with callbacks.
BUG=352588
LOG=n
[email protected]
Review URL: https://codereview.chromium.org/200173003
http://code.google.com/p/v8/source/detail?r=19935
Added:
/branches/bleeding_edge/test/mjsunit/regress/regress-migrate-callbacks.js
Modified:
/branches/bleeding_edge/src/objects.cc
=======================================
--- /dev/null
+++
/branches/bleeding_edge/test/mjsunit/regress/regress-migrate-callbacks.js
Fri Mar 14 14:17:49 2014 UTC
@@ -0,0 +1,11 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var o1 = {};
+o1.x = 1
+o1.y = 1.5
+var o2 = {}
+o2.x = 1.5;
+o2.__defineSetter__('y', function(v) { });
+o1.y;
=======================================
--- /branches/bleeding_edge/src/objects.cc Fri Mar 14 09:28:37 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc Fri Mar 14 14:17:49 2014 UTC
@@ -2620,6 +2620,8 @@
current->instance_descriptors()->GetValue(i)) {
return NULL;
}
+ } else if (target_details.type() == CALLBACKS) {
+ return NULL;
}
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.