Skip to content

Commit

Permalink
Fix StreamConstructor runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Dec 27, 2023
1 parent 31fad66 commit c0fc45f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/seroval/src/core/context/serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -935,10 +935,10 @@ export default abstract class BaseSerializerContext
case SpecialReference.StreamConstructor:
return this.createFunction(
['b', 'a', 's', 'l', 'p', 'f', 'e', 'n'],
'(b=[],a=!0,s=!1,l=[],s=0,f=' +
'(b=[],a=!0,s=!1,l=[],p=0,f=' +
this.createEffectfulFunction(
['v', 'm', 'x'],
'for(x=0;x<s;x++)l[x]&&l[x][m](v)',
'for(x=0;x<p;x++)l[x]&&l[x][m](v)',
) +
',n=' +
this.createEffectfulFunction(
Expand Down

0 comments on commit c0fc45f

Please sign in to comment.