Merge pull request #7289 from alehander42/fix-asyncjs-pragma
Stop replacing all pragmas of a function with asyncjs
This commit is contained in:
commit
363c703e72
2 changed files with 29 additions and 1 deletions
|
|
@ -129,9 +129,10 @@ proc generateJsasync(arg: NimNode): NimNode =
|
|||
return `jsResolve`
|
||||
result.body.add(voidFix)
|
||||
|
||||
result.pragma = quote:
|
||||
let asyncPragma = quote:
|
||||
{.codegenDecl: "async function $2($3)".}
|
||||
|
||||
result.addPragma(asyncPragma[0])
|
||||
|
||||
macro async*(arg: untyped): untyped =
|
||||
## Macro which converts normal procedures into
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue