fix: default literal

This commit is contained in:
cha0s 2020-06-23 02:00:22 -05:00
parent 9399de19db
commit d2327fa6e0

View File

@ -131,7 +131,7 @@ const defaultInvocation = (context, steps) => {
type: 'invoke',
args: args.map(([, {type}]) => {
const {defaultLiteral} = Context.typeDescription(type, undefined);
if (defaultLiteral) {
if ('undefined' !== defaultLiteral) {
return ({
type: 'literal',
value: defaultLiteral,