Closed albb0920 closed 4 years ago
@gryphonmyers @batiste any chance to give this a look?
Sure
On Tue, Aug 25, 2020, 11:46 PM Albert Song notifications@github.com wrote:
@gryphonmyers https://github.com/gryphonmyers @batiste https://github.com/batiste any chance to give this a look?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/batiste/pug-vdom/pull/45#issuecomment-680692462, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMENWFLAGSCT7D55QFGP3TSCSVS7ANCNFSM4JAYDWDQ .
This PR is not yet merged to master?
Hi
This is my attempt on #42 . Runtime function
exposeLocals()
anddeleteExposedLocals()
is now wrapped inenterLocalsScope()
andexitLocalsScope()
.enterLocalsScope()
will push exposed new locals toexposedLocalsStack
, and remove them whenexitLocalsScope()
is called.This change is backward compatible with generated modules from previous version by adding these alias.
Thanks!