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

codea JavaScript script to evaluate
urithe source URI
lineNumberthe starting line number

Returns

a #JSCValue representing the last value generated by the script.