Skip to content
New issue

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

[backport 1.0] add backend support for js bigint #16606

Merged
merged 6 commits into from
Jan 6, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Jan 6, 2021

  • needed for Add js BigInts #16409 to give jsBigInts sane semantics
  • backport all the way to 1.0.x, so that std/jsbigints can work for old nim (trivial and innocuous backend change)
  • see test which shows a trimmed down implementation just to show the semantics (the full library implementation is done in Add js BigInts #16409 and should use this simple replacement:
type JsBigInt* = ref object of JsRoot
=>
type JsBigIntImpl {.importc: "bigint".} = int
type JsBigInt* = distinct JsBigIntImpl

@timotheecour timotheecour requested a review from ringabout January 6, 2021 04:39
@timotheecour timotheecour mentioned this pull request Jan 6, 2021
@timotheecour timotheecour changed the title add backend support for js bigint [backport 1.0] add backend support for js bigint Jan 6, 2021
@Araq Araq merged commit 025ca66 into nim-lang:devel Jan 6, 2021
@timotheecour timotheecour deleted the pr_jsbigint_backend branch January 6, 2021 19:34
mildred pushed a commit to mildred/Nim that referenced this pull request Jan 11, 2021
* add backend support for js bigint

* cleanup

* add tests

* add -d:nimHasJsBigIntBackend

* cleanup

* more tests
narimiran pushed a commit that referenced this pull request Feb 1, 2021
* add backend support for js bigint

* cleanup

* add tests

* add -d:nimHasJsBigIntBackend

* cleanup

* more tests

(cherry picked from commit 025ca66)
narimiran pushed a commit that referenced this pull request Feb 1, 2021
* add backend support for js bigint

* cleanup

* add tests

* add -d:nimHasJsBigIntBackend

* cleanup

* more tests

(cherry picked from commit 025ca66)
narimiran pushed a commit that referenced this pull request Feb 1, 2021
* add backend support for js bigint

* cleanup

* add tests

* add -d:nimHasJsBigIntBackend

* cleanup

* more tests

(cherry picked from commit 025ca66)
narimiran added a commit that referenced this pull request Feb 2, 2021
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
* add backend support for js bigint

* cleanup

* add tests

* add -d:nimHasJsBigIntBackend

* cleanup

* more tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants