-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: CompileDiagnostic no longer extends Error #13651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 5e2b850 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
How does a compiler error look like in the terminal now? |
I don't see any difference, unless I'm missing something? I also see the |
I can't check because no laptop at hand. Can you post a screenshot of a compiler error? (I think it will look a bit different, previously when a compiler error was thrown it showed the stack trace) |
I was only checking warnings. I just noticed that Before: After: To be honest, the stack trace doesn't really give the user anything as it's all internal logic anyway. So it actually looks better? |
Yeah that looks better. |
So should we merge this and close out that issue @Rich-Harris @dummdidumm? |
I don't think it solves the original issue which was about the deserialization issue of the warning. With a class you don't get the pojo<->json capability |
We can implement a toJSON method to fix it right? |
AFAIK it already has one? So it doesn't seem to work? |
It works fine for me, this is it passed over postMessage: '{"code":"mixed_event_handler_syntaxes","message":"Mixing old (on:click) and new syntaxes for event handling is not allowed. Use only the onclick syntax","filename":"(unknown)","start":{"line":5,"column":5,"character":39},"end":{"line":7,"column":2,"character":60},"position":[39,60],"frame":"3: }}></div>\\n4: \\n5: <div on:click={() => {\\n ^\\n6: \\n7: }}></div>"}' If we extend |
Ha, crazy that not extending from Error does that - that looks good to merge then |
This reverts commit 894b1c3.
Closes #13628.