Bug 122763
Summary: | Objective-C API doesn't provide a means to specify source URL in evaluateScript: | ||
---|---|---|---|
Product: | WebKit | Reporter: | Donald Hays <don.hays> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Enhancement | CC: | joepeck, mhahnenberg, oliver, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Donald Hays
As far as I can tell, JSContext only provides evaluateScript:, and provides nothing if you want to specify a source URL or starting line number for a script. Since JSContext exposes the underlying JSContextRef, I'm able to dip down into the C layer to get that functionality while still otherwise using the Objective-C API, but it would be nice to have an Objective-C method in the JSC API that does it.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Oliver Hunt
Seems like any such api should piggy back on the jsscript type
Radar WebKit Bug Importer
<rdar://problem/15226423>
Joseph Pecoraro
We added -[JSContext evaluateScript:withSourceURL:] a while ago. That should satisfy this request. Please reopen if you think this missed your use case.