Handle failure of constructor wrapper retention
The call to PostTask() which is used to make objects created from bindings code traceable before the constructor returns can fail if the runner is in the process of shutting down. Correctly handle failure. In the case of TextEncoderStream and TextDecoderStream, failure is handled by making the constructor throw. In the case of BodyStreamBuffer, the stream is marked as broken. Also consolidate the three copies of the RetainWrapperUntilV8WrapperGetReturnedToV8() method into a single RetainWrapperDuringConstruction() function. BUG=882599 Change-Id: I056b85cc980785c0df3a946a272937c9928f31ee Reviewed-on: https://chromium-review.googlesource.com/1235359Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Joshua Bell <jsbell@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#593043}
Showing
Please register or sign in to comment