| Index: test/mjsunit/regress/regress-crbug-631917.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-631917.js b/test/mjsunit/regress/regress-crbug-631917.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6e96239fed03ffeb79ba857167673e8c68de6985
|
| --- /dev/null
|
| +++ b/test/mjsunit/regress/regress-crbug-631917.js
|
| @@ -0,0 +1,19 @@
|
| +// Copyright 2016 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.
|
| +
|
| +var v = {};
|
| +(function() {
|
| + var obj1 = { [v]: 42 };
|
| + var obj2 = {
|
| + testCounts() {
|
| + super[v]++;
|
| + return this[v];
|
| + }
|
| + }
|
| + Object.setPrototypeOf(obj2, obj1);
|
| + obj2.testCounts();
|
| +
|
| + assertEquals(43, obj2.testCounts());
|
| + assertEquals(42, obj1[v]);
|
| +}());
|
|
|