Created
June 25, 2020 20:56
-
-
Save alexcrichton/be7378c30c70195b7fca7eed9054eb40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- before 2020-06-25 13:55:56.943297377 -0700 | |
+++ after 2020-06-25 13:56:01.743316233 -0700 | |
@@ -1,8 +1,8 @@ | |
if value != null: | |
value.ref_count += 1 | |
let current_elem = table[index] | |
+table[index] = value | |
if current_elem != null: | |
current_elem.ref_count -= 1 | |
if current_elem.ref_count == 0: | |
call drop_externref_in_place(current_elem) | |
-table[index] = value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment