v8/test/mjsunit/regress/regress-crbug-716520.js
jkummerow 1f51f66f73 Fix FastAssign for self-assignment
Storing a data property on |target| can change |source|'s map
if |target| and |source| are the same object.

BUG=chromium:716520

Review-Url: https://codereview.chromium.org/2855133006
Cr-Commit-Position: refs/heads/master@{#45097}
2017-05-04 13:41:08 +00:00

22 lines
478 B
JavaScript

// Copyright 2017 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_0 = {};
var __v_8 = this;
var __v_11 = -1073741825;
__v_1 = this;
try {
} catch(e) {; }
function __f_4() {}
__f_4.prototype = __v_0;
function __f_9() { return new __f_4().v; }
__f_9(); __f_9();
try {
(function() {
})();
} catch(e) {; }
Object.assign(__v_0, __v_1, __v_0);
(function() {
})();