stubs: adapt to heap.js changes