code: function _trimStack(stack) {
          var indexOfFirstRequireJSline;
  
          // Remove everything in the stack up to the end of the line that shows this module file path
          stack = stack.substr(stack.indexOf(")\n") + 2);
  
          // Find the very first line of require.js in the stack if the call is from an extension.
          // Remove all those lines from the call stack.
          indexOfFirstRequireJSline = stack.indexOf("requirejs/require.js");
          if (indexOfFirstRequireJSline !== -1) {
              indexOfFirstRequireJSline = stack.lastIndexOf(")", indexOfFirstRequireJSline) + 1;
              stack = stack.substr(0, indexOfFirstRequireJSline);
          }
  
          return stack;
      }
docs: Trim the stack so that it does not have the call to this module,
  and all the calls to require.js to load the extension that shows
  this deprecation warning.