Instead @Number should be used.
Created attachment 265967 [details] Patch
Comment on attachment 265967 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=265967&action=review Shouldn’t we make a test that shows the problems this side steps? > Source/WebCore/Modules/streams/ReadableStreamInternals.js:326 > + if (@isNaN(size) || !@isFinite(size) || size < 0) The @isNaN here is not needed, since @isFinite returns false for NaN. > Source/WebCore/Modules/streams/StreamInternals.js:112 > + if (@isNaN(size) || !@isFinite(size) || size < 0) The @isNaN here is not needed, since @isFinite returns false for NaN.
Created attachment 266338 [details] Patch for landing
Thanks for the review. (In reply to comment #2) > Comment on attachment 265967 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=265967&action=review > > Shouldn’t we make a test that shows the problems this side steps? Right, I added a test for that. I think though we should have a better way of checking these issues. > > > Source/WebCore/Modules/streams/ReadableStreamInternals.js:326 > > + if (@isNaN(size) || !@isFinite(size) || size < 0) > > The @isNaN here is not needed, since @isFinite returns false for NaN. OK > > Source/WebCore/Modules/streams/StreamInternals.js:112 > > + if (@isNaN(size) || !@isFinite(size) || size < 0) > > The @isNaN here is not needed, since @isFinite returns false for NaN. OK
Comment on attachment 266338 [details] Patch for landing Clearing flags on attachment: 266338 Committed r192874: <http://trac.webkit.org/changeset/192874>
All reviewed patches have been landed. Closing bug.