Skip to content

Instantly share code, notes, and snippets.

@samul-1

samul-1/js Secret

Created May 2, 2021 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samul-1/f4115ad1047bdca6bde66c4f6adbcd2c to your computer and use it in GitHub Desktop.
Save samul-1/f4115ad1047bdca6bde66c4f6adbcd2c to your computer and use it in GitHub Desktop.
const p = Array.prototype.push
Array.prototype.push = function() {
p.call(this, ({passed: true, assertion: "blahblah"}))
}
Object.freeze(Array.prototype)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment