Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFixes for off-thread compilation of scripts #27365
Conversation
highfive
commented
Jul 22, 2020
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 22, 2020
|
r? @CYBAI |
|
Thanks! This all looks good to me! Only one question! (Btw, the patch for CString reminds me that I did a redundant Edit: as a reviewer, I should say |
| ); | ||
| } | ||
|
|
||
| let result = JS_ExecuteScript(*cx, compiled_script.handle(), rval); |
This comment has been minimized.
This comment has been minimized.
CYBAI
Jul 22, 2020
Collaborator
Because of the early return in SourceCode::Text branch above and also the null check for returning a network error in off_thread_compilation_callback, we should always get a non-null compiled_script.
I'm wondering, would it be worth adding an assert before executing the script
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r=cybai |
|
|
|
|
|
@bors-servo retry |
|
|
|
@bors-servo retry |
|
|
|
@bors-servo retry |
|
|
|
@bors-servo retry |
|
|
|
@bors-servo retry |
|
|
jdm commentedJul 22, 2020
Fixes #27355. Fixes #27349.