WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
225535
[JSC] Error#cause must recognize explicit undefined
https://bugs.webkit.org/show_bug.cgi?id=225535
Summary
[JSC] Error#cause must recognize explicit undefined
Ross Kirsling
Reported
2021-05-07 12:17:44 PDT
See
https://github.com/tc39/proposal-error-cause/issues/2#issuecomment-789375512
.
Attachments
Patch
(9.44 KB, patch)
2021-05-07 16:26 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Patch for landing
(9.66 KB, patch)
2021-05-07 17:10 PDT
,
Ross Kirsling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ross Kirsling
Comment 1
2021-05-07 16:26:29 PDT
Created
attachment 428057
[details]
Patch
Alexey Shvayka
Comment 2
2021-05-07 16:47:00 PDT
Comment on
attachment 428057
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=428057&action=review
Nice clean-up! r=me with a thought on (micro) optimization.
> Source/JavaScriptCore/runtime/ErrorInstance.cpp:145 > + JSValue cause = object->get(globalObject, vm.propertyNames->cause);
We could use slot.isTaintedByOpaqueObject() to avoid this get() if it's non-observable, like we do in objectConstructorValues() and friends.
Ross Kirsling
Comment 3
2021-05-07 17:03:27 PDT
(In reply to Alexey Shvayka from
comment #2
)
> Comment on
attachment 428057
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=428057&action=review
> > Nice clean-up! r=me with a thought on (micro) optimization. > > > Source/JavaScriptCore/runtime/ErrorInstance.cpp:145 > > + JSValue cause = object->get(globalObject, vm.propertyNames->cause); > > We could use slot.isTaintedByOpaqueObject() to avoid this get() if it's > non-observable, like we do in objectConstructorValues() and friends.
Thanks, will do!
Ross Kirsling
Comment 4
2021-05-07 17:10:38 PDT
Created
attachment 428063
[details]
Patch for landing
EWS
Comment 5
2021-05-07 18:26:39 PDT
Committed
r277221
(
237492@main
): <
https://commits.webkit.org/237492@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 428063
[details]
.
Radar WebKit Bug Importer
Comment 6
2021-05-07 18:27:16 PDT
<
rdar://problem/77682622
>
Truitt Savell
Comment 7
2021-05-14 12:22:31 PDT
It looks like the changes in
https://trac.webkit.org/changeset/277221/webkit
broke two tests on test262 queue
https://build.webkit.org/#/builders/19/builds/2485
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