evaluateWithSourceUri

fun evaluateWithSourceUri(code: String, length: Long, uri: String, lineNumber: <Error class: unknown class>): Value

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.

Return

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

Parameters

code

a JavaScript script to evaluate

length

length of @code, or -1 if @code is a nul-terminated string

uri

the source URI

lineNumber

the starting line number