about rejecting a Promise without install a catch handler

17 views
Skip to first unread message

Shang Yu

unread,
Aug 10, 2023, 4:11:12 AM8/10/23
to v8-dev
Hi guys,
Why the following code will throw an exception.

Promise.reject('rejected')

I can't find the corresponding specification in ecma-262. Can anybody point me out about this? Many thanks!

Marja Hölttä

unread,
Sep 4, 2023, 5:00:19 AM9/4/23
to v8-...@googlegroups.com, Shu-yu Guo
cc syg@ for ecma-262 knowledge; maybe you know the answer from the top of your head?

--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/aa7ff87b-070b-4556-b5b0-6c9bcf9a7c5dn%40googlegroups.com.


--

Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Liana Sebastian.

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.

    

This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.


Reply all
Reply to author
Forward
0 new messages