prototype property

JSValue prototype

Gets an object's prototype.

Implementation

JSValue get prototype {
  return JSValue(
      context, JSObjectRef.jSObjectGetPrototype(context.pointer, pointer));
}
void prototype=(JSValue value)

Sets an object's prototype. value (JSValueRef) A JSValue to set as the object's prototype.

Implementation

set prototype(JSValue value) {
  JSObjectRef.jSObjectSetPrototype(context.pointer, pointer, value.pointer);
}