Skip to content

Bring syscall/js support up to date with Go 1.16 #1032

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

Merged
merged 5 commits into from
Jun 3, 2021

Conversation

nevkontakte
Copy link
Member

@nevkontakte nevkontakte commented Jun 2, 2021

  • Add missing functions: IsNull, IsUndefined, IsNaN, Delete, Equal.
  • Intercept JS exceptions and raise panics of the correct type.
  • Enable upstream unit tests and make them pass with our implementation.
  • Prevent a false positive deadlock detection when an externalized function exists.
  • Prune replaced function bodies from AST to avoid errors caused by 32 vs 64 bit environment difference.

Fixes #962.

@nevkontakte nevkontakte requested a review from flimzy June 2, 2021 22:11
Functions replaced by a GopherJS overlay may contain invalid coed (e.g.
assuming a 64-bit architecture) and may still prevent the augmented code
from compiling.

Since this may make certain imports unused, we prune them as well.
  - Add missing functions: `IsNull`, `IsUndefined`, `IsNaN`, `Delete`,
    `Equal`.
  - Intercept JS exceptions and raise panics of the correct type.
  - Enable upstream unit tests and make them pass with our
    implementation.
We are now using the upstream sources, which is easier to keep up to
date.
@nevkontakte nevkontakte merged commit eeedf4a into gopherjs:master Jun 3, 2021
@nevkontakte nevkontakte deleted the syscall-js-go114 branch June 3, 2021 18:21
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.

syscall/js: support for Go 1.14 changes
2 participants