title: How to call class expressions from console?
body: <p>I'm debugging a games production code which is made with Pixi.js. In order to test some functionalities I want to call some framework functions from console. In the following code there is the minified version of the "Move" class which is called when a click on canvas is done.
  This constructor is called by other class so those <code>e, i, s, n</code> arguments come from another class. When I type MyGame["Move"](arg1, arg2, arg3, arg4); this function should work. Although 3rd and 4th arguments are known, I don't know how to pass those generated e and i arguments.</p>
  
  <pre><code>! function (t) {
      class e {
          constructor(e, i, s, n) {
              this.gameObject = e, 
              this.options = n, 
              this.goPositionPath = i || {
                  x: [],
                  y: []
              }, 
              this.goPosition = s || {
                  x: i[i.x.length - 1],
                  y: i[i.y.length - 1]
              }, 
              this.init()
          } 
          init() {
              return __awaiter(this, undefined, undefined, function* () {
                  let generatePath = yield this.generatePath();
                  if (generatePath &amp;&amp; (this.goPositionPath = generatePath), this.sendRequestToBackend(), this.options.waitBackend) return this.gameObject.currentMove = null;
                  this.editPath(), this.calculatePathDistanceAndTime(), this.initAnimation()
              })
          } 
          generatePath() { /* ... */ }
          sendRequestToBackend () { /* ... */ }
          // ...
          // Other functions...
          // ...
      }
      // ...
      // Some logic
      // ...
      t.Move = e
    }(MyGame || (MyGame = {}));
    var MyGame;
  </code></pre>
  
  <p>Is there a way to call these functions from console with available game information?</p>