tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

babel-classes.js (1671B)


      1 var rollupBabel7BabelClasses = (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 _defineProperty(obj, key, value) {
     27    if (key in obj) {
     28      Object.defineProperty(obj, key, {
     29        value: value,
     30        enumerable: true,
     31        configurable: true,
     32        writable: true
     33      });
     34    } else {
     35      obj[key] = value;
     36    }
     37 
     38    return obj;
     39  }
     40 
     41  function root() {
     42    var Another =
     43    /*#__PURE__*/
     44    function () {
     45      function Another() {
     46        var _this = this;
     47 
     48        _classCallCheck(this, Another);
     49 
     50        _defineProperty(this, "bound", function () {
     51          return _this;
     52        });
     53      }
     54 
     55      _createClass(Another, [{
     56        key: "method",
     57        value: function method() {
     58          console.log("pause here", Another, root);
     59        }
     60      }]);
     61 
     62      return Another;
     63    }();
     64 
     65    new Another().method();
     66  }
     67 
     68  return root;
     69 
     70 }());
     71 //# sourceMappingURL=babel-classes.js.map