Onlife/node_modules/class-is/test/fixtures/es5/ImplicitExplicitWithoutNew.js
2025-04-19 15:38:48 +08:00

26 lines
689 B
JavaScript

'use strict';
const withIs = require('../../..');
function ImplicitExplicitWithoutNew_() {
/* istanbul ignore if */
if (!(this instanceof ImplicitExplicitWithoutNew)) {
return new ImplicitExplicitWithoutNew();
}
this.label = 'ImplicitExplicitWithoutNew';
}
ImplicitExplicitWithoutNew_.prototype.getLabel = function () {
return this.label;
};
const ImplicitExplicitWithoutNew = withIs.proto(ImplicitExplicitWithoutNew_, {
className: 'ImplicitExplicitWithoutNew',
symbolName: '@org/package/ImplicitExplicitWithoutNew',
withoutNew: true,
});
module.exports = ImplicitExplicitWithoutNew;
module.exports.WrappedClass = ImplicitExplicitWithoutNew_;