forked from microsoft/vscode-node-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclasses.js
More file actions
28 lines (27 loc) · 804 Bytes
/
Copy pathclasses.js
File metadata and controls
28 lines (27 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Foo = (function () {
function Foo(name) {
this._name = name;
}
Foo.prototype.getName = function () {
return this._name;
};
return Foo;
})();
var Bar = (function (_super) {
__extends(Bar, _super);
function Bar() {
_super.apply(this, arguments);
}
Bar.prototype.getName = function () {
return _super.prototype.getName.call(this) + ' Doe';
};
return Bar;
})(Foo);
var bar = new Bar('John2');
console.log(bar.getName()); // John Doe
//# sourceMappingURL=classes.js.map