Skip to content
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

Fix panic while exporting a nil Goja value #1204

Closed
2 tasks done
inancgumus opened this issue Feb 2, 2024 · 0 comments · Fixed by #1205
Closed
2 tasks done

Fix panic while exporting a nil Goja value #1204

inancgumus opened this issue Feb 2, 2024 · 0 comments · Fixed by #1205
Assignees
Labels
bug Something isn't working mapping k6 browser to Goja mapping related.

Comments

@inancgumus
Copy link
Member

inancgumus commented Feb 2, 2024

What?

When running the script in #1089 it panics with an NPD.

Last commit: 12ab6e9

Why

To prevent panics while calling browser methods with null or undefined values.

How?

  • We need to check for nil here before exporting goja.Value types.
  • This should also be checked for the other options that export.

Tasks

Tasks

Preview Give feedback
  1. inancgumus

Related PR(s)/Issue(s)

#1182

@inancgumus inancgumus added bug Something isn't working mapping k6 browser to Goja mapping related. labels Feb 2, 2024
@inancgumus inancgumus self-assigned this Feb 2, 2024
@inancgumus inancgumus reopened this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mapping k6 browser to Goja mapping related.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant