Comparing version 0.4.0-alpha.16 to 0.4.0-alpha.17
{ | ||
"name": "seroval", | ||
"type": "module", | ||
"version": "0.4.0-alpha.16", | ||
"version": "0.4.0-alpha.17", | ||
"files": [ | ||
@@ -67,3 +67,3 @@ "dist", | ||
}, | ||
"gitHead": "ebed12239c5985c00e66f984da6b4a48d7519706" | ||
"gitHead": "8996bd95e93cfc4d099aa040117916b326faacad" | ||
} |
@@ -493,3 +493,8 @@ /* eslint-disable @typescript-eslint/no-use-before-define */ | ||
// has initialized | ||
serialized = 'Promise.resolve().then(()=>' + getRefParam(ctx, node.n.i) + ')'; | ||
const ref = getRefParam(ctx, node.n.i); | ||
if (ctx.features & Feature.ArrowFunction) { | ||
serialized = 'Promise.resolve().then(()=>' + ref + ')'; | ||
} else { | ||
serialized = 'Promise.resolve().then(function(){return ' + ref + '})'; | ||
} | ||
} else { | ||
@@ -496,0 +501,0 @@ ctx.stack.push(node.i); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
400755
5619