Updating GC ref handling around lambda and promise