Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcrichton/be7378c30c70195b7fca7eed9054eb40 to your computer and use it in GitHub Desktop.
Save alexcrichton/be7378c30c70195b7fca7eed9054eb40 to your computer and use it in GitHub Desktop.
--- 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