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: throwing exceptions during module initialization #490

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

nabetti1720
Copy link
Contributor

@nabetti1720 nabetti1720 commented Jul 20, 2024

Issue # (if available)

Fixed #482

Description of changes

This PR will allow the correct output of the content of errors during module initialization.

After the revision:

% LLRT_NET_DENY=/ ./llrt -e 'console.log("123")'
ReferenceError: LLRT_NET_DENY env contains an invalid URI

Checklist

  • Created unit tests in tests/unit and/or in Rust for my feature if needed
  • Ran make fix to format JS and apply Clippy auto fixes
  • Made sure my code didn't add any additional warnings: make check
  • Updated documentation if needed (API.md/README.md/Other)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@richarddavison richarddavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! I think we can merge all error handling for init!

llrt_core/src/vm.rs Outdated Show resolved Hide resolved
@richarddavison richarddavison merged commit 6141859 into awslabs:main Jul 21, 2024
8 checks passed
@nabetti1720 nabetti1720 deleted the fix/throwing-exceptions branch July 21, 2024 11:46
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 22, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 22, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 22, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 25, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 25, 2024
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.

Exceptions thrown during module initialization are not caught
2 participants