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

Unified Diff: test/mjsunit/regress/regress-356589.js

Issue 213823002: Don't pass the hole to SetElement when creating Array.observe change records (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-356589.js
diff --git a/test/mjsunit/regress/regress-3220.js b/test/mjsunit/regress/regress-356589.js
similarity index 86%
copy from test/mjsunit/regress/regress-3220.js
copy to test/mjsunit/regress/regress-356589.js
index 6f8e8c8f0eedd2cd5e00cb00d9e9fee1899a27c6..f93c5456407e6f1a433aa2c63d84f0749489a19b 100644
--- a/test/mjsunit/regress/regress-3220.js
+++ b/test/mjsunit/regress/regress-356589.js
@@ -25,6 +25,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --use-strict
+// This test passes if it does not crash in debug mode
-String(new Date());
+arr = ['a', 'b', 'c', 'd'];
+Object.defineProperty(arr.__proto__, '0', { get: function(){} });
+Object.defineProperty(arr, '2', {get: function(){} });
+Object.observe(arr, function() {});
+arr.length = 2;
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698