-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(ecmascript): support dynamic tenary operator jsvalue #6498
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
10 Ignored Deployments
|
✅ This change can build |
🟢 CI successful 🟢Thanks |
Linux Benchmark for 1b48f6cClick to view benchmark
|
🟢 Turbopack Benchmark CI successful 🟢Thanks |
@@ -469,9 +469,11 @@ pub fn replace_builtin(value: &mut JsValue) -> bool { | |||
if test.is_truthy() == Some(true) { | |||
*value = take(cons); | |||
true | |||
} else { | |||
} else if test.is_falsy() == Some(true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the culprit for the benchmark regresssion;
previously skipping falsy branching per #6452 (comment), however in that case non-truhy dynamic (i.e rootElement === null
) is also considered as statically falsy and takes alt directly.
Linux Benchmark for decec71Click to view benchmark
|
Closes PACK-1963
Reattempt #6452
Closes PACK-1983