A wrapper for JSCheckScriptSyntax to be able to check for syntax errors without actually evaluating the code.
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>
<rdar://problem/42331406>