title: Variable is appearing as "undefined" in debugger
body: <p>I'm attempting to display data with axios, promises, and other ES6 features. This project works in prod, but after changing the API endpoints around in dev (no longer working w/ old endpoints) I've run into issues.</p>
  
  <p>For some reason, the variable I'm working with (<code>kkUser</code>) is coming up as <code>undefined</code>. I'm not sure if it has to do with the different endpoints or something else.</p>
  
  <h3>Helper file:</h3>
  
  <pre><code>const kkObj = {};
  
  export async function loadKKProperties(obj) {
    kkObj.spUrl = _spPageContextInfo.siteAbsoluteUrl;
    kkObj._KKRestHost = "https://ha----dev.com";
    kkObj._BaseHost = "https://in-url.com";
  // other code
  </code></pre>
  
  <hr>
  
  <h3>JS:</h3>
  
  <pre><code>import { loadKKProperties } from "./helperfile";
  import axios from "axios";
  
  function getDocFolders(kkUser, places) {
    return kkUser
      .userValidatedPostRequest({
        // stuff
        }
      })
  // more code
  
  async function globalInitPromise() {
    const kkObj = await loadKKProperties(); 
    const token = await permissionToCallKKAPI(kkObj.hsHost);
    const kkUser = new KKUser(kkObj, token);
  
      class KKUser {
        constructor(kkObj, token) {
          this.kkObj = kkObj;
          this.token = token;
        }
  // other code
  
  userValidatedPostRequest(dataObj) {
      dataObj.Params.SAMAcct = this.kkObj.currentAccount;
      return axios
         .post(this.kkObj._KKRestHost + "/myAPI/api/Query/Post", dataObj, { // debugger gets stuck here
          "query": {
              "__metadata":{"type":"SP.CamlQuery"}
          },
          withCredentials: true,
          headers: {
            Accept: "application/json;odata=verbose",
            Authorization: this.token,
            "X-RequestDigest": $("#__REQUESTDIGEST").val()
          }
        })
  // .then
  // .catch
  </code></pre>
  
  <hr>
  
  <h3>Console:</h3>
  
  <ul>
  <li>404 error</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/z91Ah.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z91Ah.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/upL19.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/upL19.png" alt="enter image description here"></a></p>