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

Unified Diff: test/mjsunit/es6/object-literals-property-shorthand.js

Issue 1328083002: [es6] support `get` and `set` in shorthand properties (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 3 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 | « test/cctest/test-parsing.cc ('k') | test/mjsunit/harmony/destructuring.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/object-literals-property-shorthand.js
diff --git a/test/mjsunit/es6/object-literals-property-shorthand.js b/test/mjsunit/es6/object-literals-property-shorthand.js
index 29ce66d270839e861751b7f0205ef74712bc58f5..f0ddd68d42aad0bc3edaed5177edf98fb519d0e1 100644
--- a/test/mjsunit/es6/object-literals-property-shorthand.js
+++ b/test/mjsunit/es6/object-literals-property-shorthand.js
@@ -10,6 +10,14 @@
})();
+(function TestBasicsGetSet() {
+ var get = 1, set = 2;
+ var object = {get, set};
+ assertEquals(1, object.get);
+ assertEquals(2, object.set);
+})();
+
+
(function TestDescriptor() {
var x = 1;
var object = {x};
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/mjsunit/harmony/destructuring.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698