Summary: | [GLIB] Add jsc_context_check_syntax() to GLib API | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bugs-noreply, calvaris, ews-watchlist, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer, ysuzuki | ||||||
Priority: | P2 | Keywords: | Gtk, InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Carlos Garcia Campos
2018-07-16 05:38:03 PDT
Created attachment 345090 [details]
Patch
Comment on attachment 345090 [details]
Patch
Looks good. But, I think this API does not consider about ES6 modules.
Module and Script have different syntax elements. For example, `import` declaration is not allowed under Script mode.
We should take an argument indicating the mode.
Created attachment 345238 [details]
Updated patch
Comment on attachment 345238 [details]
Updated patch
r=me
Committed r233911: <https://trac.webkit.org/changeset/233911> |