Skip to content

Commit 238c790

Browse files
fix: handle functions while marshalling (usebruno#3102)
* fix: handle functions while marshalling * fix: js style
1 parent 5e4a967 commit 238c790

File tree

1 file changed

+2
-0
lines changed
  • packages/bruno-js/src/sandbox/quickjs/utils

1 file changed

+2
-0
lines changed

Diff for: packages/bruno-js/src/sandbox/quickjs/utils/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const marshallToVm = (value, vm) => {
2525
}
2626
return obj;
2727
}
28+
} else if (typeof value === 'function') {
29+
return vm.newString('[Function (anonymous)]');
2830
}
2931
};
3032

0 commit comments

Comments
 (0)