@jdeighan/coffee-utils 7.0.69 → 7.0.70
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/call_stack.coffee +2 -4
- package/src/call_stack.js +3 -3
package/package.json
CHANGED
package/src/call_stack.coffee
CHANGED
@@ -99,14 +99,12 @@ export class CallStack
|
|
99
99
|
|
100
100
|
returnFrom: (fName) ->
|
101
101
|
|
102
|
-
if doDebugStack
|
103
|
-
LOG @indent() + "[<-- BACK #{fName}]"
|
104
|
-
|
105
102
|
if @lStack.length == 0
|
106
103
|
LOG "ERROR: returnFrom('#{fName}') but stack is empty"
|
107
104
|
return
|
108
|
-
|
109
105
|
{fullName, isLogged} = @lStack.pop()
|
106
|
+
if doDebugStack
|
107
|
+
LOG @indent() + "[<-- BACK #{fName}]"
|
110
108
|
if (fullName != fName)
|
111
109
|
LOG "ERROR: returnFrom('#{fName}') but TOS is #{fullName}"
|
112
110
|
return
|
package/src/call_stack.js
CHANGED
@@ -102,14 +102,14 @@ export var CallStack = class CallStack {
|
|
102
102
|
// --- if stack is empty, log the error, but continue
|
103
103
|
returnFrom(fName) {
|
104
104
|
var fullName, isLogged;
|
105
|
-
if (doDebugStack) {
|
106
|
-
LOG(this.indent() + `[<-- BACK ${fName}]`);
|
107
|
-
}
|
108
105
|
if (this.lStack.length === 0) {
|
109
106
|
LOG(`ERROR: returnFrom('${fName}') but stack is empty`);
|
110
107
|
return;
|
111
108
|
}
|
112
109
|
({fullName, isLogged} = this.lStack.pop());
|
110
|
+
if (doDebugStack) {
|
111
|
+
LOG(this.indent() + `[<-- BACK ${fName}]`);
|
112
|
+
}
|
113
113
|
if (fullName !== fName) {
|
114
114
|
LOG(`ERROR: returnFrom('${fName}') but TOS is ${fullName}`);
|
115
115
|
return;
|