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

Unified Diff: test/mjsunit/es6/regress/regress-cr493566.js

Issue 1161073002: [es6] Make sure we call add property when adding a new property (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« src/objects.cc ('K') | « 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/es6/regress/regress-cr493566.js
diff --git a/test/mjsunit/compiler/regress-469089.js b/test/mjsunit/es6/regress/regress-cr493566.js
similarity index 58%
copy from test/mjsunit/compiler/regress-469089.js
copy to test/mjsunit/es6/regress/regress-cr493566.js
index 6aff2b720305290570124cec0dd7a4a959f05694..0ae6ab0f441ce2682673815bf5ceeb08940fdd37 100644
--- a/test/mjsunit/compiler/regress-469089.js
+++ b/test/mjsunit/es6/regress/regress-cr493566.js
@@ -1,16 +1,16 @@
// 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.
+"use strict";
-// Flags: --expose-gc
+var global = this;
(function() {
- var __v_6 = false;
- function f(val, idx) {
- if (idx === 1) {
- gc();
- __v_6 = (val === 0);
+ class A {
+ s() {
+ super.bla = 10;
}
}
- f(.1, 1);
+ new A().s.call(global);
+ assertEquals(10, global.bla);
})();
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698