Skip to content

Do not mutating global variables #1216

@Jack-Works

Description

@Jack-Works

image

https://github.com/amark/gun/blob/5df08f91cb2959deb36c0f4f85c0e537ad103e0c/src/shim.js

The following are not in the JS standard:

  • String.random
  • String.match
  • String.hash
  • Object.plain
  • Object.empty
  • setTimeout.turn
  • setTimeout.poll
  • setTimeout.each

Please do not try to modify those objects but use them as internal utils, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions