Skip to content

Commit d3322ab

Browse files
authored
let jwlambda throw errors
1 parent 03d1300 commit d3322ab

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/extensions/jwLambda/index.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,13 @@ class LambdaType {
6565
}
6666

6767
execute = function* (arg, thread, target, runtime, stage) {
68-
try {
69-
thread._jwLambdaArgument ??= []
70-
thread._jwLambdaArgument.push(arg)
71-
if (this.proc) thread.procedures = {...this.proc, ...thread.procedures}
72-
this.timesExecuted++
73-
let output = (yield* this.func(arg, thread, target, runtime, stage, this) ?? "")
74-
thread._jwLambdaArgument.pop()
75-
return output
76-
} catch (e) {
77-
console.warn("Lambda failed", e)
78-
return ""
79-
}
68+
thread._jwLambdaArgument ??= []
69+
thread._jwLambdaArgument.push(arg)
70+
if (this.proc) thread.procedures = {...this.proc, ...thread.procedures}
71+
this.timesExecuted++
72+
let output = (yield* this.func(arg, thread, target, runtime, stage, this) ?? "")
73+
thread._jwLambdaArgument.pop()
74+
return output
8075
}
8176
}
8277

0 commit comments

Comments
 (0)