definePropertyValue method

bool definePropertyValue(
  1. int prop,
  2. JSProp flags, {
  3. JSValue? thiz,
})

Implementation

bool definePropertyValue(int prop, JSProp flags, {JSValue? thiz}) =>
    JS_DefinePropertyValue(
      _ctx.ref,
      thiz?.ref.ref ?? _ctx.globalObject.ref.ref,
      prop,
      _ref.ref,
      flags.value,
    ) !=
    0;