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

Feature/ternary expression js compiler #438

Conversation

TobiasWienand
Copy link
Contributor

Addresses issue #437

This PR enables compilation of ternary expressions (i.e. a ? b : c). Known as conditional expression in the babel js parser

Copy link
Collaborator

@saelo saelo left a comment

Choose a reason for hiding this comment

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

Really nice, thanks!

Sources/Fuzzilli/Compiler/Parser/parser.js Outdated Show resolved Hide resolved
Sources/Fuzzilli/Compiler/Parser/parser.js Outdated Show resolved Hide resolved
Sources/Fuzzilli/Compiler/Compiler.swift Outdated Show resolved Hide resolved
@saelo saelo merged commit c2a5c3a into googleprojectzero:main Jul 26, 2024
2 of 3 checks passed
@saelo
Copy link
Collaborator

saelo commented Jul 26, 2024

Thanks! :)

saelo pushed a commit that referenced this pull request Jul 26, 2024
* Makes conditional expressions compilable from JS to FuzzIL
* Implements unit test for tertiary expression compilation
@saelo saelo mentioned this pull request Jul 26, 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.

2 participants