JSCFunctionListEntry.defPropDouble constructor

JSCFunctionListEntry.defPropDouble(
  1. JSContext ctx,
  2. String name,
  3. double val,
  4. JSProp propFlags, {
  5. bool autoDispose = true,
})

Implementation

factory JSCFunctionListEntry.defPropDouble(
  JSContext ctx,
  String name,
  double val,
  JSProp propFlags, {
  bool autoDispose = true,
}) {
  return JSCFunctionListEntry._(
    ctx,
    name: name,
    propFlags: propFlags,
    defType: JSDef.PROP_DOUBLE,
    magic: 0,
    union: JSCFuntionListEntryUnion(f64: val),
    autoDispose: autoDispose,
  );
}