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); |