Skip name inference on hard-to-replace classes - fixes T2494

This commit is contained in:
Logan Smyth
2015-12-05 17:07:10 -08:00
parent 412c65deb3
commit 925804798d
3 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
var x = {
Foo: class extends Foo {}
};

View File

@@ -0,0 +1,14 @@
"use strict";
var x = {
Foo: (function (_Foo) {
babelHelpers.inherits(_class, _Foo);
function _class() {
babelHelpers.classCallCheck(this, _class);
return babelHelpers.possibleConstructorReturn(this, Object.getPrototypeOf(_class).apply(this, arguments));
}
return _class;
})(Foo)
};