Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103207377
createSuper.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 28, 05:19
Size
748 B
Mime Type
text/x-java
Expires
Sun, Mar 2, 05:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24515476
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
createSuper.js
View Options
import getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
import isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
import possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
export default function _createSuper(Derived) {
var hasNativeReflectConstruct = isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return possibleConstructorReturn(this, result);
};
}
Event Timeline
Log In to Comment