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.
Seems like any such api should piggy back on the jsscript type
We added -[JSContext evaluateScript:withSourceURL:] a while ago. That should satisfy this request. Please reopen if you think this missed your use case.