Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ECMAScript specifies Object.getPrototypeOf(obj) function to get prototype of the given object. This nashorn specific extension allows prototype of an object to be set by newProto.

See also https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf

Object.bindProperties

Object.bindProperties lets you bind properties of one object to another object. Example:

...