Support for passing a constructor with a prototype property