evaluate_with_source_uri


Description:

public Value evaluate_with_source_uri (string code, ssize_t length, string uri, uint line_number)

Evaluate code in this 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:

this

a Context

code

a JavaScript script to evaluate

length

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

uri

the source URI

line_number

the starting line number

Returns:

a Value representing the last value generated by the script.




2022 vala-language.org