WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
197244
Add SPI callbacks for before and after module execution
https://bugs.webkit.org/show_bug.cgi?id=197244
Summary
Add SPI callbacks for before and after module execution
Saam Barati
Reported
2019-04-24 13:53:18 PDT
...
Attachments
patch
(11.77 KB, patch)
2019-04-24 14:59 PDT
,
Saam Barati
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-04-24 13:53:35 PDT
<
rdar://problem/50180511
>
Saam Barati
Comment 2
2019-04-24 14:59:45 PDT
Created
attachment 368183
[details]
patch
EWS Watchlist
Comment 3
2019-04-24 15:02:38 PDT
Attachment 368183
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/API/tests/testapi.mm:2033: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] ERROR: Source/JavaScriptCore/API/tests/testapi.mm:2034: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Yusuke Suzuki
Comment 4
2019-04-24 15:17:25 PDT
Comment on
attachment 368183
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=368183&action=review
r=me. BTW, this use case is actually why we have moduleLoaderEvaluate hook in ModuleLoader APIs. WebCore does the almost same thing to tell the inspector about module evaluation :)
> Source/JavaScriptCore/API/JSAPIGlobalObject.mm:249 > + String moduleKey = key.toWTFString(exec); > + RETURN_IF_EXCEPTION(scope, { });
In JSContext / JSScript module loading API desing, the key is always URL String (not Symbol), is my understanding correct? If so, it is fine.
Saam Barati
Comment 5
2019-04-24 15:30:30 PDT
(In reply to Yusuke Suzuki from
comment #4
)
> Comment on
attachment 368183
[details]
> patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=368183&action=review
> > r=me. BTW, this use case is actually why we have moduleLoaderEvaluate hook > in ModuleLoader APIs. WebCore does the almost same thing to tell the > inspector about module evaluation :)
Nice.
> > > Source/JavaScriptCore/API/JSAPIGlobalObject.mm:249 > > + String moduleKey = key.toWTFString(exec); > > + RETURN_IF_EXCEPTION(scope, { }); > > In JSContext / JSScript module loading API desing, the key is always URL > String (not Symbol), is my understanding correct? If so, it is fine.
That's correct.
WebKit Commit Bot
Comment 6
2019-04-24 15:42:45 PDT
Comment on
attachment 368183
[details]
patch Clearing flags on attachment: 368183 Committed
r244620
: <
https://trac.webkit.org/changeset/244620
>
WebKit Commit Bot
Comment 7
2019-04-24 15:42:46 PDT
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