Fix RequestInit IDL compatibility issues
RequestInit is manually implemented and has some compatibility issues. 1. undefined value is treated as a real value, e.g., (new Request('/', {method: undefined}).method returns "undefined". 2. Exceptions are silently ignored, e.g., new Request('/', {get method() { throw Error(); }}) doesn't throw. This change fixes the issues. Bug: 775318 Change-Id: I3d5b2b49f47cfdf92ba0707f6af0260653e386d9 Reviewed-on: https://chromium-review.googlesource.com/722543 Commit-Queue: Yutaka Hirano <yhirano@chromium.org> Reviewed-by:Adam Rice <ricea@chromium.org> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#509714}
Showing
This diff is collapsed.
Please register or sign in to comment