-
Notifications
You must be signed in to change notification settings - Fork 100
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
Does not support inspecting Errors in v8.x #143
Comments
@joyeecheung is this still an issue? |
@mmarchini Yes. With this: diff --git a/test/fixtures/inspect-scenario.js b/test/fixtures/inspect-scenario.js
index 11133ac..03a508a 100644
--- a/test/fixtures/inspect-scenario.js
+++ b/test/fixtures/inspect-scenario.js
@@ -57,6 +57,10 @@ function closure() {
);
c.hashmap['buffer'] = Buffer.from([0xff, 0xf0, 0x80, 0x0f, 0x01, 0x00]);
+ c.hashmap['error'] = new Error('test');
+ c.hashmap['error'].code = 'ERR_TEST';
+ c.hashmap['error'].errno = 1;
+
c.hashmap[0] = null;
c.hashmap[4] = undefined;
c.hashmap[23] = /regexp/; I got:
|
@joyeecheung are you still working on this? If not, would you mind if I take this on? |
@mmarchini I probably lost the initial investigation with my last laptop...feel free to take this! |
Adding a new postmortem metadata to V8 (JS_ERROR_TYPE) does the trick, but the
|
@mmarchini Isn't the |
@misterdjules yep, that's what I got so far as well. The actual stack trace seems to be stored in the |
This commit fixes JSError inspection for Node.js v7+. We still need to figure out a way to get the stack from the Error object though. Ref: nodejs#143
This commit fixes JSError inspection for Node.js v7+. We still need to figure out a way to get the stack from the Error object though. Ref: nodejs#143
This commit fixes JSError inspection for Node.js v7+. We still need to figure out a way to get the stack from the Error object though. Ref: nodejs#143
This commit fixes JSError inspection for Node.js v7+. We still need to figure out a way to get the stack from the Error object though. Ref: #143 PR-URL: #215 Refs: #143 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Fixed by #215 |
This commit fixes JSError inspection for Node.js v7+. We still need to figure out a way to get the stack from the Error object though. Ref: nodejs#143 PR-URL: nodejs#215 Refs: nodejs#143 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Looks like v8 has made some significant changes to errors (rewrite in C++), now they are no longer normal objects. The inspection seems to have stopped working since 7.x. I am working on a fix.
The text was updated successfully, but these errors were encountered: