Update runtime.ts
Merge pull request #312 from fortianwei/aprilwei

Thread being deleted incorrectly by splice method