-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
chore: update source-map-support #9147
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
|
The snapshot should be updated, and this is exactly what has been fixed in source-map 0.5.14. Let's take this snapshot for an example In the code above, the error is thrown in the function source-map v0.5.16 fixed this bug and one can see the snapshot difference on the CI log. - Snapshot - 6
+ Received + 6
@@ -14,11 +14,11 @@
| ^
46 | };
47 |
48 | // This expecation fails due to an error we throw (intentionally)
- at Error (__tests__/sync.test.js:45:13)
- at baz (__tests__/sync.test.js:43:23)
- at bar (__tests__/sync.test.js:42:23)
- at foo (__tests__/sync.test.js:52:7)
- at Object.callback (__tests__/sync.test.js:11:18)
- at Object.toCustomMatch (__tests__/sync.test.js:53:8)
+ at baz (__tests__/sync.test.js:45:13)
+ at bar (__tests__/sync.test.js:43:23)
+ at foo (__tests__/sync.test.js:42:23)
+ at callback (__tests__/sync.test.js:52:7)
+ at Object.toCustomMatch (__tests__/sync.test.js:11:18)
+ at Object.<anonymous> (__tests__/sync.test.js:53:8)You can also verify the correctness by running the following JavaScript program copy pasted from const foo = () => bar();
const bar = () => baz();
const baz = () => {
throw Error('qux');
};
foo();It will print the following stack trace. |
|
Thanks for chiming in @JLHwung, and providing some details! It seems to me it's now more correct, but provides a worse UX since the name of the assertion is not in the errors. We might have to do some juggling in order to restore the previous errors, as I think seeing So, doing some digging. If I stop filtering the stack trace, I currently get the following stack: I get If I pass So what I essentially want is to set the name of the function at the top frame as the name of Thoughts? |
b478b46 to
4327f6f
Compare
4327f6f to
6aa5554
Compare
|
We cannot land this until it does not mess up #10633 |
ee52f15 to
76b4d07
Compare
76b4d07 to
282e774
Compare
282e774 to
2758cf1
Compare
|
I assume we are not landing this? |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This breaks breaks stack traces, not sure why. Seems to come from evanw/node-source-map-support#253, but I don't know anything more than that
Test plan
Eventually green CI