classes.js (1608B)
1 var rollupBabel7Classes = (function () { 2 'use strict'; 3 4 function _classCallCheck(instance, Constructor) { 5 if (!(instance instanceof Constructor)) { 6 throw new TypeError("Cannot call a class as a function"); 7 } 8 } 9 10 function _defineProperties(target, props) { 11 for (var i = 0; i < props.length; i++) { 12 var descriptor = props[i]; 13 descriptor.enumerable = descriptor.enumerable || false; 14 descriptor.configurable = true; 15 if ("value" in descriptor) descriptor.writable = true; 16 Object.defineProperty(target, descriptor.key, descriptor); 17 } 18 } 19 20 function _createClass(Constructor, protoProps, staticProps) { 21 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 22 if (staticProps) _defineProperties(Constructor, staticProps); 23 return Constructor; 24 } 25 26 function root() { 27 var one = 1; 28 29 var Thing = 30 /*#__PURE__*/ 31 function () { 32 function Thing() { 33 _classCallCheck(this, Thing); 34 } 35 36 _createClass(Thing, [{ 37 key: "one", 38 value: function one() { 39 console.log("pause here"); 40 } 41 }]); 42 43 return Thing; 44 }(); 45 46 var Another = 47 /*#__PURE__*/ 48 function () { 49 function Another() { 50 _classCallCheck(this, Another); 51 } 52 53 _createClass(Another, [{ 54 key: "method", 55 value: function method() { 56 console.log("pause here", Another, one, Thing, root); 57 } 58 }]); 59 60 return Another; 61 }(); 62 63 new Another().method(); 64 new Thing().one(); 65 } 66 67 return root; 68 69 }()); 70 //# sourceMappingURL=classes.js.map