evalThis method

JSValue evalThis(
  1. JSValue thiz,
  2. String input,
  3. String filename, {
  4. JSEvalType evalFlags = JSEvalType.GLOBAL,
  5. bool autoDispose = true,
})

Implementation

JSValue evalThis(
  JSValue thiz,
  String input,
  String filename, {
  JSEvalType evalFlags = JSEvalType.GLOBAL,
  bool autoDispose = true,
}) =>
    JSValue.ptr(
      this,
      JS_EvalThis(
        _ref,
        thiz.ref.ref,
        input.toNativeUtf8(),
        utf8.encode(input).length,
        filename.toNativeUtf8(),
        evalFlags.value,
      ),
      autoDispose: autoDispose,
    );