We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this works:
func wrapToInt*(this: JsBigInt; bits: Natural): JsBigInt {.importjs: "(() => { const i = #, b = #; return BigInt.asIntN(b, i) })()".}
this doesn't work but should: (EDIT)
func wrapToInt*(this: JsBigInt; bits: Natural): JsBigInt {.importjs: "BigInt.asIntN($3, $2)".}
(or at least something equivalently simple) Note: $1 is for function name, so I'm starting at $2
devel 1.5.1 d2f4f25 related: timotheecour#488 related but different: #12150
The text was updated successfully, but these errors were encountered:
You can not use $1 for arguments because thats the function name.
$1
Sorry, something went wrong.
indeed; I updated the issue accordingly
No branches or pull requests
Example
this works:
this doesn't work but should:
(EDIT)
(or at least something equivalently simple)
Note: $1 is for function name, so I'm starting at $2
Additional Information
devel 1.5.1 d2f4f25
related: timotheecour#488
related but different: #12150
The text was updated successfully, but these errors were encountered: