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

Side by Side Diff: test/mjsunit/regress/regress-crbug-580584.js

Issue 1632603002: [api] Default native data property setter to replace the setter if the property is writable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/snapshot/serialize.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function f() { return arguments }
6
7 // Reconfiguring function.name should update both the attributes and the value.
8 Object.defineProperty(f, "name", {
9 writable: true, configurable: true, value: 10});
10 assertEquals({value: 10, writable: true, enumerable: false, configurable: true},
11 Object.getOwnPropertyDescriptor(f, "name"));
12
13 var args = f();
14
15 // Setting a value for arguments[Symbol.iterator] should not affect the
16 // attributes.
17 args[Symbol.iterator] = 10;
18 assertEquals({value: 10, writable: true, configurable: true, enumerable: false},
19 Object.getOwnPropertyDescriptor(args, Symbol.iterator));
OLDNEW
« no previous file with comments | « src/snapshot/serialize.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698