Open nshahan opened 1 month ago
Hey, how to reproduce this code in chrome. I don't have any idea. Can you please help ?
You must be running the current stable Chrome release to see the issue. There is a reproduction in this Chrome bug https://g-issues.chromium.org/issues/344629939.
b/350613557 exhibits this (cross-linking)
NVM, a fix seems to be coming to Canary (128)
Chrome recently made a change that broke the printing of our error messages in the console when errors are uncaught. See: https://chromium-review.googlesource.com/c/v8/v8/+/5378709
In this code I would hope to see the the cast failure message in the console:
Instead all you get is:
If you inspect the error before it gets thrown you can still see
.message
contains"TypeError: "hello": type 'String' is not a subtype of type 'int'"
.To fix this, it seems like we need to pass the message to the Error constructor. Then it appears in the console like it used to.
If you run the same code in firefox the console shows:
cc @rakudrama