noReceiverError method

RuntimeD4rtException noReceiverError(
  1. String bridgedName,
  2. String member
)

ghissues31: the error for a member this instance's class inherits from the bridged class bridgedName when there is no native object to run it on - neither a native super-object nor a native or receiver proxy. It used to answer null silently (RC-9).

Implementation

RuntimeD4rtException noReceiverError(String bridgedName, String member) =>
    RuntimeD4rtException(
      "'${klass.name}' inherits '$bridgedName.$member' from the bridged "
      "class '$bridgedName' but has no native object to run it on: "
      "'$bridgedName' has no constructor the interpreter can call, so a "
      'script subclass gets no native super-object, and no receiver proxy '
      "is marked for it (register an interface proxy for '$bridgedName' "
      'and mark it with D4.markProxyIsReceiver).',
    );