Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101513141
_create_super.mjs
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
Tue, Feb 11, 04:27
Size
749 B
Mime Type
text/x-java
Expires
Thu, Feb 13, 04:27 (2 d)
Engine
blob
Format
Raw Data
Handle
24172713
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
_create_super.mjs
View Options
import _isNativeReflectConstruct from "./_is_native_reflect_construct.mjs";
import _getPrototypeOf from "./_get_prototype_of.mjs";
import _possibleConstructorReturn from './_possible_constructor_return.mjs';
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