mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
18 lines
445 B
JavaScript
18 lines
445 B
JavaScript
var Test = /*#__PURE__*/function () {
|
|
"use strict";
|
|
|
|
function Test() {
|
|
return Object.prototype.constructor;
|
|
}
|
|
Test.test = function test() {
|
|
return Function.prototype.constructor;
|
|
};
|
|
return Test;
|
|
}(); // Instances
|
|
expect(Object.getPrototypeOf(Test.prototype)).toBe(Object.prototype);
|
|
expect(new Test()).toBe(Object);
|
|
|
|
// Static
|
|
expect(Object.getPrototypeOf(Test)).toBe(Function.prototype);
|
|
expect(Test.test()).toBe(Function);
|