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

Unified Diff: test/mjsunit/regress/property-descriptor-to-object.js

Issue 1458873002: Fix PropertyDescriptor::ToObject (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/property-descriptor.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/property-descriptor-to-object.js
diff --git a/test/message/arrow-param-after-rest-2.js b/test/mjsunit/regress/property-descriptor-to-object.js
similarity index 56%
copy from test/message/arrow-param-after-rest-2.js
copy to test/mjsunit/regress/property-descriptor-to-object.js
index c01cec8ad4f412c97797e07e946d1730a6513bcc..e47d5a5b4deb261933b6e9df86e3eebaea3736e0 100644
--- a/test/message/arrow-param-after-rest-2.js
+++ b/test/mjsunit/regress/property-descriptor-to-object.js
@@ -1,7 +1,8 @@
// Copyright 2015 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.
-//
-// Flags: --harmony-rest-parameters
-(w, ...x, y) => 10
+var o = { prop: 1 };
+Object.prototype.value = 0;
+var d = Object.getOwnPropertyDescriptor(o, "prop");
+assertEquals(1, d.value);
« no previous file with comments | « src/property-descriptor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698