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

Side by Side Diff: test/mjsunit/ignition/regress-662418.js

Issue 2473223004: [Interpreter] Ensure ValueOf is only called once for post-increment operations. (Closed)
Patch Set: Fix golden files Created 4 years, 1 month 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
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 var valueof_calls = 0;
6
7 var v = {
8 toString: function() {
9 var z = w++;
10 }
11 };
12 var w = {
13 valueOf: function() {
14 valueof_calls++;
15 }
16 };
17 var x = { [v]: 'B' };
18 assertTrue(valueof_calls == 1);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698