Bug 446393 - Inheritance support in ECMA 5.1 spec
Summary: Inheritance support in ECMA 5.1 spec
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-09 01:54 EDT by Bryan Elliott CLA
Modified: 2014-10-09 01:54 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Elliott CLA 2014-10-09 01:54:30 EDT
The following inheritance pattern should be supported:

function MyClass() {
  SuperClass.call(this);
}

MyClass.prototype = Object.create(SuperClass.prototype);

Additionally, supporting Object.defineProperty/defineProperties and Object.create(SuperClass.prototype, propertiesObject) should also be supported for building the Class prototype.