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

add array.clone() and require it on assign #213

Open
serkonda7 opened this issue Mar 7, 2024 · 0 comments
Open

add array.clone() and require it on assign #213

serkonda7 opened this issue Mar 7, 2024 · 0 comments
Labels

Comments

@serkonda7
Copy link
Member

serkonda7 commented Mar 7, 2024

Description and Reproduction Sample

	mut a := ['a', 'b']
	mut b := a // Should require `.clone()` or unsafe block (both currently unimplemented)
	b.push('c')
	println(a.length)
	println(b.length)

Possible Solution and Additional Information

No response

Environment details (bait doctor)

Version: Bait 0.0.6 dbf3fd7
OS: linux/x64
Git: git version 2.44.0
Node.js: v21.7.0

@serkonda7 serkonda7 added the bug label Mar 7, 2024
@serkonda7 serkonda7 changed the title js: fix passing by value and by reference add array.clone() and require it on assign Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant