A wrapper for JSCheckScriptSyntax to be able to check for syntax errors without actually evaluating the code.
Created attachment 345090 [details]
Comment on attachment 345090 [details]
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]
Comment on attachment 345238 [details]
Committed r233911: <https://trac.webkit.org/changeset/233911>