-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
js: ref object assignment silently gives wrong results #16003
Labels
Comments
timotheecour
changed the title
js: ref object assignment incorrect
js: ref object assignment silently gives wrong results
Nov 16, 2020
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Nov 16, 2020
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Nov 16, 2020
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Nov 16, 2020
Generated code (mangle numbers removed): function bar(c) {
var result = null;
var result_Idx = 0;
var n = c;
result_Idx = [, n.val];
result = n.val;
result[result_Idx] = n.val;
return [result, result_Idx];
} |
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Nov 25, 2020
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
…support for addr (nim-lang#16002) * fix nim-lang#14339: fixes limited VM support for addr * strengthen test * reference bug nim-lang#16003 * also fixes nim-lang#13511 * also fixes nim-lang#14420
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
…support for addr (nim-lang#16002) * fix nim-lang#14339: fixes limited VM support for addr * strengthen test * reference bug nim-lang#16003 * also fixes nim-lang#13511 * also fixes nim-lang#14420
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
js: ref object assignment incorrect (related to #14339 which was fixed in #16002, but for js backend)
Example
Current Output
fails
Expected Output
works
Additional Information
The text was updated successfully, but these errors were encountered: