Ad
  • Custom User Avatar

    Needs a fixed test mark(0); markEnd();and it needs to check result '=== 0', not '== 0'.

  • Custom User Avatar

    Needs random tests

  • Custom User Avatar

    This would benefit from some kind of testing to prevent polluting global unnecessarily (like the example solution does .. :[ ). (Namespacing both functions would not be a bad idea either.)

    At the moment I have no idea how to write such a test, beyond enumerating global before and after, and allowing no more than two new keys. I don't even know if that'll work; global might grow new keys for unexplained reasons (is that possible? is it predictable?).