Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

ReferenceError: result is not defined #223

@wjjr

Description

@wjjr

This issue was introduced in #216 as result of minifying the dist/browser.js file. See babel/minify#594.

ERROR ReferenceError: result is not defined
    at Object.randomString (browser.js:1)
    at Object.header (browser.js:1)
    [...]

Relevant part of the dist/browser.js file prettified:

// [...]
hawk.utils = {
  // [...]
  randomString: function randomString(c) {
    for (var d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', e = d.length, f = [], g = 0; g < c; ++g)
      f[g] = d[Math.floor(Math.random() * e)];
    return result.join('')
  },
  // [...]
};
// [...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions