code: function symbolicate(stackTrace, context) {
    return stackTrace.replace(
      /(?:([^@: \n]+)(@|:))?(?:(?:([^@: \n]+):)?(\d+):(\d+)|\[native code\])/g,
      function(match, func, delimiter, fileName, line, column) {
        if (delimiter === ':' && func && !fileName) {
          fileName = func;
          func = null;
        }
        var original = getOriginalPositionFor(
          line,
          column,
          parseFileName(fileName || ''),
          context,
        );
        return original.source + ':' + original.line + ':' + original.name;
      },
    );
  }
docs: parse stack trace with String.replace replace the matched part of stack trace to symbolicated result sample stack trace: IOS: foo@4:18131, Android: bar:4:18063 sample stack trace with module id: IOS: foo@123.js:4:18131, Android: bar:123.js:4:18063 sample stack trace without function name: 123.js:4:18131 sample result: IOS: foo.js:57:foo, Android: bar.js:75:bar