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

Unified Diff: test/mjsunit/has-own-property-evaluation-order.js

Issue 1211663002: Fix evaluation order of Object.prototype.hasOwnProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « src/v8natives.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/has-own-property-evaluation-order.js
diff --git a/test/mjsunit/compiler/regress-447567.js b/test/mjsunit/has-own-property-evaluation-order.js
similarity index 58%
copy from test/mjsunit/compiler/regress-447567.js
copy to test/mjsunit/has-own-property-evaluation-order.js
index c348debee25fe3b3a909e163998b85088d605902..ae0218039602f2f030c8458abdead393ce5026aa 100644
--- a/test/mjsunit/compiler/regress-447567.js
+++ b/test/mjsunit/has-own-property-evaluation-order.js
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-assertThrows(function() {
- [0].every(function(){ Object.seal((new Int8Array())); });
-})
+function MyError() {}
assertThrows(function() {
- "use strict";
- const v = 42;
- v += 1;
-});
+ Object.prototype.hasOwnProperty.call(null, {
+ toString() {
+ throw new MyError();
+ }
+ });
+}, MyError);
« no previous file with comments | « src/v8natives.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698