Skip to content

fix(node): LocalVariables, Improve frame matching for ESM#7049

Merged
AbhiPrasad merged 9 commits intogetsentry:developfrom
timfish:fix/local-variables-esm
Feb 6, 2023
Merged

fix(node): LocalVariables, Improve frame matching for ESM#7049
AbhiPrasad merged 9 commits intogetsentry:developfrom
timfish:fix/local-variables-esm

Conversation

@timfish
Copy link
Copy Markdown
Collaborator

@timfish timfish commented Feb 3, 2023

In #7046 there were issues reported with LocalVariables and ESM.

The call frame context appears to be lost from the debugger in the above reported case but I did find that frame matching could be improved.

This PR:

  • Adds a LocalVariables test with ESM
  • Ensures that we don't use obj.className if it's undefined

@timfish timfish force-pushed the fix/local-variables-esm branch from 80120b1 to 624cdb6 Compare February 3, 2023 10:11
@timfish timfish force-pushed the fix/local-variables-esm branch from 4cec9eb to e325cc8 Compare February 3, 2023 10:45
@AbhiPrasad
Copy link
Copy Markdown
Contributor

Maybe we just disable the Node 10 tests? The likelihood of Node 10 + mjs seems pretty small, we can even add a note to the docs that it's not supported.

@AbhiPrasad AbhiPrasad merged commit 17db8e2 into getsentry:develop Feb 6, 2023
@timfish timfish deleted the fix/local-variables-esm branch February 6, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants