Repository navigation
Implement runtime limits for recursion - #2904
Merged
Merged
Conversation
Test262 conformance changes
Fixed tests (1): |
Codecov Report
@@ Coverage Diff @@
## main #2904 +/- ##
==========================================
- Coverage 51.88% 51.82% -0.06%
==========================================
Files 431 431
Lines 43230 43302 +72
==========================================
+ Hits 22429 22443 +14
- Misses 20801 20859 +58
|
Razican
reviewed
May 5, 2023
Razican
left a comment
Member
There was a problem hiding this comment.
It looks great to me! I'm only missing the test and example, as you mention :)
Razican
approved these changes
May 5, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request fixes/closes #809 and fixes/closes #1307 and related to #2350 .
It changes the following:
$boa.limitsmodule for debuggingLike #2857 the recursion limit can be controlled through the
.runtime_limits():Or using the
$boaobject for debugging:Tried different values
400seemed to not cause a stack-overflow, while500did, so I set it to400. This is in debug mode, In release we could probably set it to a higher value.Removed
"tail-call-optimization"feature from test262 ignore list, because it no longer causes a stack-overflow :)Currently the way we do calls requires us to recurse in rust, this is not the ideal approach, we need to refactor it! That's why we are limited by our native stack size instead of heap size. This issue does not prevent this PR from being merged though.
I'll work on refactoring the way we call functions in a separate PR :)