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

Unified Diff: test/mjsunit/regress/regress-649078.js

Issue 2362503003: [promises] PromiseResolveThenableJob: change then to be a JSReceiver (Closed)
Patch Set: Created 4 years, 3 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/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-649078.js
diff --git a/test/message/generators-throw1.js b/test/mjsunit/regress/regress-649078.js
similarity index 55%
copy from test/message/generators-throw1.js
copy to test/mjsunit/regress/regress-649078.js
index b4d404a1bf4d1e8f46c669c79f9ececd6f1ee64f..f4f6e1b1361250e99c1f63731345ca06e40eb9f1 100644
--- a/test/message/generators-throw1.js
+++ b/test/mjsunit/regress/regress-649078.js
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function* f() { yield }
+let p = Promise.resolve();
+Object.defineProperty(p, 'then', {
+ get: () => new Proxy(function() {}, p)
+});
-f().throw(42);
+new Promise((r) => r(p));
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698