| Index: lib/runtime/dart/_isolate_helper.js
|
| diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
|
| index c72ace6864a848d42b1c51161e33cf23fb8af26e..248c98ecf6974d2557df43c678b76a842cb611ff 100644
|
| --- a/lib/runtime/dart/_isolate_helper.js
|
| +++ b/lib/runtime/dart/_isolate_helper.js
|
| @@ -710,14 +710,14 @@ var _isolate_helper;
|
| dart.dinvoke(this[_scheduledControlEvents], 'clear');
|
| }
|
| for (let port of this.ports.values) {
|
| - dart.dinvoke(port, '_close');
|
| + port._close();
|
| }
|
| this.ports.clear();
|
| this.weakPorts.clear();
|
| exports._globalState.isolates.remove(this.id);
|
| this.errorPorts.clear();
|
| if (this.doneHandlers != null) {
|
| - for (let port of this.doneHandlers) {
|
| + for (let port of dart.as(this.doneHandlers, core.Iterable$(isolate.SendPort))) {
|
| port.send(null);
|
| }
|
| this.doneHandlers = null;
|
|
|