updating _removeThread to actually match docs

This commit is contained in:
Tim Mickel 2016-04-29 17:36:09 -04:00
parent 96123f870f
commit 7d9f75b14d

View file

@ -172,10 +172,10 @@ Runtime.prototype._pushThread = function (id) {
/**
* Remove a thread from the list of threads.
* @param {!Thread} thread Thread object to remove from actives
* @param {?Thread} thread Thread object to remove from actives
*/
Runtime.prototype._removeThread = function (id) {
var i = this.threads.indexOf(id);
Runtime.prototype._removeThread = function (thread) {
var i = this.threads.indexOf(thread);
if (i > -1) this.threads.splice(i, 1);
};