File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,19 @@ export class Query extends Promise {
31
31
this . executed = false
32
32
this . signature = ''
33
33
34
- this [ originError ] = handler . debug || ! this . tagged
34
+ this [ originError ] = this . handler . debug
35
35
? new Error ( )
36
- : cachedError ( this . strings )
36
+ : this . tagged && cachedError ( this . strings )
37
37
}
38
38
39
39
get origin ( ) {
40
- return this . handler . debug || ! this . tagged
40
+ return this . handler . debug
41
41
? this [ originError ] . stack
42
- : originStackCache . has ( this . strings )
43
- ? originStackCache . get ( this . strings )
44
- : originStackCache . set ( this . strings , this [ originError ] . stack ) . get ( this . strings )
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
+ : ''
45
47
}
46
48
47
49
static get [ Symbol . species ] ( ) {
You can’t perform that action at this time.
0 commit comments