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 tojson unconditionally serializes #26054
Changes from 1 commit
80b2a87
096f3d7
f7d4a37
fa8afbb
d8c1dc6
74995a5
File filter...
Jump to…
fixed fmt
- Loading branch information
| @@ -2977,10 +2977,14 @@ def definition_body(self): | ||
| ret += fill( | ||
| """ | ||
| let conditions = ${conditions}; | ||
| if !conditions.iter().any(|c| c.is_satisfied(SafeJSContext::from_ptr(cx), HandleObject::from_raw(obj), HandleObject::from_raw(obj))) { | ||
| if !conditions.iter().any(|c| | ||
| c.is_satisfied( | ||
| SafeJSContext::from_ptr(cx), | ||
| HandleObject::from_raw(obj), | ||
| HandleObject::from_raw(obj))) { | ||
| return false; | ||
shnmorimoto
Author
Contributor
|
||
| } | ||
| rooted!(in(cx) let mut temp = UndefinedValue()); | ||
| rooted!(in(cx) let mut temp = UndefinedValue()); | ||
| if !get_${name}(cx, obj, this, JSJitGetterCallArgs { _base: temp.handle_mut().into() }) { | ||
| return false; | ||
| } | ||
I believe the timeouts in the tests are caused by returning here if the condition is not satisfied, rather than only executing the following code if the condition is satisfied.