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

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

Issue 1218473003: [es6] Remove harmony-object-literal flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update description of harmony classes flag Created 5 years, 6 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
Index: test/mjsunit/harmony/object-literals-property-shorthand.js
diff --git a/test/mjsunit/harmony/object-literals-property-shorthand.js b/test/mjsunit/harmony/object-literals-property-shorthand.js
deleted file mode 100644
index 9756da46c10b4309f61cbba94c0dea6c63e4832c..0000000000000000000000000000000000000000
--- a/test/mjsunit/harmony/object-literals-property-shorthand.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// 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.
-
-// Flags: --harmony-object-literals
-
-
-(function TestBasics() {
- var x = 1;
- var object = {x};
- assertEquals(1, object.x);
-})();
-
-
-(function TestDescriptor() {
- var x = 1;
- var object = {x};
- var descr = Object.getOwnPropertyDescriptor(object, 'x');
- assertEquals(1, descr.value);
- assertTrue(descr.enumerable);
- assertTrue(descr.writable);
- assertTrue(descr.configurable);
-})();
-
-
-(function TestNotDefined() {
- 'use strict';
- assertThrows(function() {
- return {notDefined};
- }, ReferenceError);
-})();
-
-
-(function TestLet() {
- var let = 1;
- var object = {let};
- assertEquals(1, object.let);
-})();
-
-
-(function TestYieldInFunction() {
- var yield = 1;
- var object = {yield};
- assertEquals(1, object.yield);
-})();
-
-
-(function TestToString() {
- function f(x) { return {x}; }
- assertEquals('function f(x) { return {x}; }', f.toString());
-})();
-
-
-(function TestProtoName() {
- var __proto__ = 1;
- var object = {
- __proto__
- };
- assertEquals(Object.prototype, Object.getPrototypeOf(object));
- assertEquals(1, object.__proto__);
-})();
-
-
-(function TestProtoName2() {
- var __proto__ = 1;
- var p = {};
- var object = {
- __proto__: p,
- __proto__,
- };
- assertEquals(p, Object.getPrototypeOf(object));
- assertEquals(1, object.__proto__);
-})();
« no previous file with comments | « test/mjsunit/harmony/object-literals-method.js ('k') | test/mjsunit/regress/regress-parse-object-literal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698