@babel/runtime
Advanced tools
Comparing version 7.0.0-beta.41 to 7.0.0-beta.42
import _typeof from "../../../helpers/builtin/es6/typeof"; | ||
var _gPO = Object.getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
function _gPO(o) { | ||
_gPO = Object.getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
var _sPO = Object.setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _gPO(o); | ||
} | ||
var _construct = _typeof(Reflect) === "object" && Reflect.construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
function _sPO(o, p) { | ||
_sPO = Object.setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
var _cache = typeof Map === "function" && new Map(); | ||
return _sPO(o, p); | ||
} | ||
function _construct(Parent, args, Class) { | ||
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && Reflect.construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
return _construct(Parent, args, Class); | ||
} | ||
export default function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
_wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
_cache.set(Class, Wrapper); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
function Wrapper() {} | ||
_cache.set(Class, Wrapper); | ||
} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writeable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
function Wrapper() {} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
}; | ||
return _wrapNativeSuper(Class); | ||
} |
var _typeof = require("../../helpers/builtin/typeof"); | ||
var _gPO = Object.getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
function _gPO(o) { | ||
_gPO = Object.getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
var _sPO = Object.setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _gPO(o); | ||
} | ||
var _construct = _typeof(Reflect) === "object" && Reflect.construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
function _sPO(o, p) { | ||
_sPO = Object.setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
var _cache = typeof Map === "function" && new Map(); | ||
return _sPO(o, p); | ||
} | ||
function _construct(Parent, args, Class) { | ||
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && Reflect.construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
return _construct(Parent, args, Class); | ||
} | ||
function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
_cache.set(Class, Wrapper); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
function Wrapper() {} | ||
_cache.set(Class, Wrapper); | ||
} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writeable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
function Wrapper() {} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
}; | ||
return _wrapNativeSuper(Class); | ||
} | ||
module.exports = _wrapNativeSuper; |
@@ -8,45 +8,61 @@ import _Object$create from "../../core-js/object/create"; | ||
var _gPO = _Object$getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
function _gPO(o) { | ||
_gPO = _Object$getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
var _sPO = _Object$setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _gPO(o); | ||
} | ||
var _construct = _typeof(Reflect) === "object" && _Reflect$construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
function _sPO(o, p) { | ||
_sPO = _Object$setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
var _cache = typeof _Map === "function" && new _Map(); | ||
return _sPO(o, p); | ||
} | ||
function _construct(Parent, args, Class) { | ||
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && _Reflect$construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
return _construct(Parent, args, Class); | ||
} | ||
export default function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
var _cache = typeof _Map === "function" ? new _Map() : undefined; | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
_wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
_cache.set(Class, Wrapper); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
function Wrapper() {} | ||
_cache.set(Class, Wrapper); | ||
} | ||
Wrapper.prototype = _Object$create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writeable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
function Wrapper() {} | ||
Wrapper.prototype = _Object$create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
}; | ||
return _wrapNativeSuper(Class); | ||
} |
@@ -13,47 +13,63 @@ var _Object$create = require("../core-js/object/create"); | ||
var _gPO = _Object$getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
function _gPO(o) { | ||
_gPO = _Object$getPrototypeOf || function _gPO(o) { | ||
return o.__proto__; | ||
}; | ||
var _sPO = _Object$setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _gPO(o); | ||
} | ||
var _construct = _typeof(Reflect) === "object" && _Reflect$construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
function _sPO(o, p) { | ||
_sPO = _Object$setPrototypeOf || function _sPO(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
var _cache = typeof _Map === "function" && new _Map(); | ||
return _sPO(o, p); | ||
} | ||
function _construct(Parent, args, Class) { | ||
_construct = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && _Reflect$construct || function _construct(Parent, args, Class) { | ||
var Constructor, | ||
a = [null]; | ||
a.push.apply(a, args); | ||
Constructor = Parent.bind.apply(Parent, a); | ||
return _sPO(new Constructor(), Class.prototype); | ||
}; | ||
return _construct(Parent, args, Class); | ||
} | ||
function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
var _cache = typeof _Map === "function" ? new _Map() : undefined; | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
_cache.set(Class, Wrapper); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
function Wrapper() {} | ||
_cache.set(Class, Wrapper); | ||
} | ||
Wrapper.prototype = _Object$create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writeable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
function Wrapper() {} | ||
Wrapper.prototype = _Object$create(Class.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
return _sPO(Wrapper, _sPO(function Super() { | ||
return _construct(Class, arguments, _gPO(this).constructor); | ||
}, Class)); | ||
}; | ||
return _wrapNativeSuper(Class); | ||
} | ||
module.exports = _wrapNativeSuper; |
{ | ||
"name": "@babel/runtime", | ||
"version": "7.0.0-beta.41", | ||
"version": "7.0.0-beta.42", | ||
"description": "babel selfContained runtime", | ||
@@ -13,8 +13,8 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.41", | ||
"@babel/helpers": "7.0.0-beta.41", | ||
"@babel/plugin-transform-runtime": "7.0.0-beta.41", | ||
"@babel/preset-env": "7.0.0-beta.41", | ||
"@babel/types": "7.0.0-beta.41" | ||
"@babel/core": "7.0.0-beta.42", | ||
"@babel/helpers": "7.0.0-beta.42", | ||
"@babel/plugin-transform-runtime": "7.0.0-beta.42", | ||
"@babel/preset-env": "7.0.0-beta.42", | ||
"@babel/types": "7.0.0-beta.42" | ||
} | ||
} |
100530
2640