Browse Source

fix typo in error message

content-update
Clément 4 years ago committed by GitHub
parent
commit
7365d88433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      js/tests/test.mjs

2
js/tests/test.mjs

@ -46,7 +46,7 @@ const { join } = []
const { split } = ''
const stackFmt = (err, url) => {
if (!(err instanceof Error)) {
throw Error(`Unexpected type thrown: ${typeof err}. usage: throw Error('my message'))`)
throw Error(`Unexpected type thrown: ${typeof err}. usage: throw Error('my message')`)
}
String.prototype.split = split
Array.prototype.join = join

Loading…
Cancel
Save