1 | // From here:
|
2 | // https://phabricator.babeljs.io/T3083
|
3 | //
|
4 | // Turns out I was doing some bad things, but for now I'm going to
|
5 | // keep on doing them. TODO: Stop it.
|
6 |
|
7 | function ExtendableBuiltin(cls) {
|
8 | function ExtendableBuiltin() {
|
9 | cls.apply(this, arguments);
|
10 | }
|
11 | ExtendableBuiltin.prototype = Object.create(cls.prototype);
|
12 | Object.setPrototypeOf(ExtendableBuiltin, cls);
|
13 |
|
14 | return ExtendableBuiltin;
|
15 | }
|
16 |
|
17 | module.exports = ExtendableBuiltin;
|