WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 215501
WritableStream rejected promises should be marked as handled as per spec
https://bugs.webkit.org/show_bug.cgi?id=215501
Summary
WritableStream rejected promises should be marked as handled as per spec
youenn fablet
Reported
2020-08-14 06:53:36 PDT
WritableStream rejected promises should be marked as handled as per spec.
Attachments
Patch
(11.57 KB, patch)
2020-08-14 07:48 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(10.65 KB, patch)
2020-08-15 08:53 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2020-08-14 07:48:31 PDT
Created
attachment 406589
[details]
Patch
Darin Adler
Comment 2
2020-08-14 10:47:59 PDT
Comment on
attachment 406589
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=406589&action=review
> Source/WebCore/Modules/streams/WritableStreamInternals.js:72 > + @putPromiseInternalField(readyPromiseCapability.@promise, @promiseFieldFlags, @getPromiseInternalField(readyPromiseCapability.@promise, @promiseFieldFlags) | @promiseFlagsIsHandled);
Frustrating that this long line of code is repeated 6 times. Is there a way to do this that is less wordy and repetitive, but is also still efficient?
youenn fablet
Comment 3
2020-08-14 10:52:21 PDT
Agreed, it would be nice to be able to mirror specs saying 'Set promise.[[PromiseIsHandled]] to true.' I guess adding a builtin for that would probably not be a perf issue. Or we could just introduce a PromiseIsHandled slot. Any thoughts, Yusuke?
EWS
Comment 4
2020-08-15 01:00:45 PDT
Tools/Scripts/svn-apply failed to apply
attachment 406589
[details]
to trunk. Please resolve the conflicts and upload a new patch.
youenn fablet
Comment 5
2020-08-15 01:01:20 PDT
Will land the patch and will do a follow-up for PromiseIsHandled.
youenn fablet
Comment 6
2020-08-15 08:53:30 PDT
Created
attachment 406668
[details]
Patch for landing
EWS
Comment 7
2020-08-15 09:25:45 PDT
Committed
r265732
: <
https://trac.webkit.org/changeset/265732
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 406668
[details]
.
Radar WebKit Bug Importer
Comment 8
2020-08-15 09:26:17 PDT
<
rdar://problem/67141710
>
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