WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151499
[Streams API] streams should not directly use Number and related methods
https://bugs.webkit.org/show_bug.cgi?id=151499
Summary
[Streams API] streams should not directly use Number and related methods
youenn fablet
Reported
2015-11-20 10:00:12 PST
Instead @Number should be used.
Attachments
Patch
(6.57 KB, patch)
2015-11-20 10:14 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(9.20 KB, patch)
2015-12-01 00:11 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2015-11-20 10:14:59 PST
Created
attachment 265967
[details]
Patch
Darin Adler
Comment 2
2015-11-30 11:55:23 PST
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.
youenn fablet
Comment 3
2015-12-01 00:11:17 PST
Created
attachment 266338
[details]
Patch for landing
youenn fablet
Comment 4
2015-12-01 00:16:13 PST
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
WebKit Commit Bot
Comment 5
2015-12-01 01:06:39 PST
Comment on
attachment 266338
[details]
Patch for landing Clearing flags on attachment: 266338 Committed
r192874
: <
http://trac.webkit.org/changeset/192874
>
WebKit Commit Bot
Comment 6
2015-12-01 01:06:43 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug