We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f569d8 commit cae4d97Copy full SHA for cae4d97
src/query.js
@@ -37,13 +37,12 @@ export class Query extends Promise {
37
}
38
39
get origin() {
40
- return this.handler.debug
+ return (this.handler.debug
41
? this[originError].stack
42
- : this.tagged
43
- ? originStackCache.has(this.strings)
44
- ? originStackCache.get(this.strings)
45
- : originStackCache.set(this.strings, this[originError].stack).get(this.strings)
46
- : ''
+ : this.tagged && originStackCache.has(this.strings)
+ ? originStackCache.get(this.strings)
+ : originStackCache.set(this.strings, this[originError].stack).get(this.strings)
+ ) || ''
47
48
49
static get [Symbol.species]() {
0 commit comments