Context.evaluateWithSourceUri
javascriptcore.value.Value evaluateWithSourceUri(string code, string uri, uint lineNumber)Evaluate code in context using uri as the source URI. The line_number is the starting line number in uri; the value is one-based so the first line is 1. uri and line_number will be shown in exceptions and they don't affect the behavior of the script.
Parameters
code | a JavaScript script to evaluate |
uri | the source URI |
lineNumber | the starting line number |
Returns
a #JSCValue representing the last value generated by the script.