packages/babel-plugin-transform-classes/test/fixtures/loose/default-super/output.js
raw symbols SCIP| 1 | var Test = /*#__PURE__*/function () { |
| 2 | "use strict"; |
| 3 | |
| 4 | function Test() { |
| 5 | return Object.prototype.constructor; |
| 6 | } |
| 7 | Test.test = function test() { |
| 8 | return Function.prototype.constructor; |
| 9 | }; |
| 10 | return Test; |
| 11 | }(); // Instances |
| 12 | expect(Object.getPrototypeOf(Test.prototype)).toBe(Object.prototype); |
| 13 | expect(new Test()).toBe(Object); |
| 14 | |
| 15 | // Static |
| 16 | expect(Object.getPrototypeOf(Test)).toBe(Function.prototype); |
| 17 | expect(Test.test()).toBe(Function); |