WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195392
Exception is a JSCell, not a JSObject.
https://bugs.webkit.org/show_bug.cgi?id=195392
Summary
Exception is a JSCell, not a JSObject.
Mark Lam
Reported
2019-03-06 17:59:08 PST
Hence, it should not insert from JSDestructibleObject.
Attachments
work in progress for EWS testing only.
(51.16 KB, patch)
2019-03-06 18:04 PST
,
Mark Lam
no flags
Details
Formatted Diff
Diff
proposed patch.
(56.92 KB, patch)
2019-03-06 22:52 PST
,
Mark Lam
no flags
Details
Formatted Diff
Diff
proposed patch.
(56.88 KB, patch)
2019-03-06 22:56 PST
,
Mark Lam
saam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2019-03-06 18:04:25 PST
Created
attachment 363828
[details]
work in progress for EWS testing only.
Mark Lam
Comment 2
2019-03-06 18:05:23 PST
(In reply to Mark Lam from
comment #0
)
> Hence, it should not insert from JSDestructibleObject.
That should have said: Hence, it should not inherit from JSDestructibleObject. Thank you auto-correct.
Mark Lam
Comment 3
2019-03-06 22:52:11 PST
Created
attachment 363847
[details]
proposed patch.
EWS Watchlist
Comment 4
2019-03-06 22:54:55 PST
Attachment 363847
[details]
did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 36 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Lam
Comment 5
2019-03-06 22:56:54 PST
Created
attachment 363848
[details]
proposed patch.
Saam Barati
Comment 6
2019-03-06 23:32:19 PST
Comment on
attachment 363848
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=363848&action=review
> Source/JavaScriptCore/ChangeLog:31 > + We'll leave these as is for now. To facilitate the conversion from Exception*
I don’t understand why you need anything special here. We already define JSValue(JSCell*)
> Source/JavaScriptCore/runtime/JSCJSValueInlines.h:189 > +inline JSValue::JSValue(Exception* exception)
This isn’t needed
> Source/JavaScriptCore/runtime/JSCast.h:36 > + if (!(!from || from->JSCell::inherits(*from->JSCell::vm(), std::remove_pointer<To>::type::info()))) {
OOPS
Mark Lam
Comment 7
2019-03-07 02:11:36 PST
Comment on
attachment 363848
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=363848&action=review
Thanks for the review.
>> Source/JavaScriptCore/ChangeLog:31 >> + We'll leave these as is for now. To facilitate the conversion from Exception* > > I don’t understand why you need anything special here. We already define JSValue(JSCell*)
You are right. We don't need this. All we need is to #include "Exception.h" in "Error.h" and "ExceptionHelper.h". Fixed.
>> Source/JavaScriptCore/runtime/JSCJSValueInlines.h:189 >> +inline JSValue::JSValue(Exception* exception) > > This isn’t needed
Removed.
>> Source/JavaScriptCore/runtime/JSCast.h:36 >> + if (!(!from || from->JSCell::inherits(*from->JSCell::vm(), std::remove_pointer<To>::type::info()))) { > > OOPS
Removed.
Mark Lam
Comment 8
2019-03-07 02:17:53 PST
Landed in
r242596
: <
http://trac.webkit.org/r242596
>.
Radar WebKit Bug Importer
Comment 9
2019-03-07 02:18:17 PST
<
rdar://problem/48669863
>
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