WPEJavaScriptCore.Context.evaluate

### Method

# WPEJavaScriptCore Contextevaluate

#### Declaration [src]

    JSCValue*
    jsc_context_evaluate (
      JSCContext* context,
      const char* code,
      gssize length
    )

#### Description [src]

Evaluate `code` in `context`.

#### Parameters

`code` | `const char*`
| A JavaScript script to evaluate.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`length` | `gssize`
| Length of `code`, or -1 if `code` is a nul-terminated string.

#### Return value

Returns: | `JSCValue`
| A `JSCValue` representing the last value generated by the script.
| The caller of the method takes ownership of the data, and is responsible for freeing it.