Set Ready For Review
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Last CL part of this series. Thank you for your reviews. PTAL!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (global_scope && global_scope->GetModuleResponsesMap()) {I think `global_scope` is guaranteed non-null here?
ToV8Traits<DOMException>::ToV8(script_state_, dom_exception);`dom_exception->ToV8(script_state_);` is a little more direct and cleaner - you can use it for an class that is a subclass of `ScriptWrappable` and is guaranteed non-null.
if (script_state && script_state->ContextIsValid()) {`script_state` should be guaranteed non-null.
ScriptState::Scope scope(script_state);I think this can stay inside the `if (error_to_rethrow) {}` block. ScriptPromiseResolver takes care of ensuring we're in-scope, so we only need to enter the scope for `Deserialize()`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
if (global_scope && global_scope->GetModuleResponsesMap()) {I think `global_scope` is guaranteed non-null here?
Acknowledged
ToV8Traits<DOMException>::ToV8(script_state_, dom_exception);`dom_exception->ToV8(script_state_);` is a little more direct and cleaner - you can use it for an class that is a subclass of `ScriptWrappable` and is guaranteed non-null.
Thank you, applied
`script_state` should be guaranteed non-null.
Done
I think this can stay inside the `if (error_to_rethrow) {}` block. ScriptPromiseResolver takes care of ensuring we're in-scope, so we only need to enter the scope for `Deserialize()`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |