Skip to content

Commit

Permalink
fix(runtime): fix interceptor main func error (labring#1638)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyoct authored Nov 8, 2023
1 parent 623940c commit b3bc612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtimes/nodejs/src/support/engine/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class CloudFunction {
}
function __next__() {
const exports = {}
${code}
const __main__ = exports.main || exports.default
if(!__main__) { throw new Error('FunctionExecError: main function not found') }
Expand Down

0 comments on commit b3bc612

Please sign in to comment.