We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4baea9 commit b5d4078Copy full SHA for b5d4078
README.md
@@ -15,7 +15,7 @@ includes
15
However, if `error.stack` is modified, `error.message` is not updated
16
accordingly. This library fixes it.
17
18
-On other JavaScript engines, this library just sets `error.stack`.
+In other JavaScript engines, this library just sets `error.stack`.
19
20
# Example
21
@@ -40,7 +40,7 @@ const error = new Error('one')
40
console.log(error.stack) // 'Error: one ...'
41
console.log(error.message) // 'one'
42
43
-setErrorStack(stack, error.stack.replace('one', 'two'))
+setErrorStack(error, error.stack.replace('one', 'two'))
44
console.log(error.stack) // 'Error: two ...'
45
console.log(error.message) // 'two'
46
```
0 commit comments