Browse Source

fix typo in error message

pull/581/head
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 { split } = ''
const stackFmt = (err, url) => { const stackFmt = (err, url) => {
if (!(err instanceof Error)) { 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 String.prototype.split = split
Array.prototype.join = join Array.prototype.join = join

Loading…
Cancel
Save