Open xiaxinmeng opened 1 year ago
I can confirm this on gpython master.
Want to try to fix @xiaxinmeng ?
Thanks for confirm these bugs very much. But I am sorry that I cannot fix these bugs because I am not familiar with go language. The fixing task is difficult for me. I will be grateful if you can fix these bugs. Thanks.
Reassigning getattr with getattr in a class and then using the attribute 'spam' triggers gpython crashing. See the following example. We test the example on the online gpython i.e., GO/wasm and Gopherjs. GO/wasm can well handle the test while it crashes on the Gopherjs.
test.py
Output on Gopherjs (https://gpython.org/)