Bug 890112 - [OS.File] DirectoryIterator should correctly implement iterator interface; r=yoric

This commit is contained in:
Tim Taubert 2013-07-04 12:56:22 +02:00
parent f75c5b7822
commit 90a0356a09

View File

@ -718,6 +718,9 @@ let DirectoryIterator = function DirectoryIterator(path, options) {
this._isClosed = false; this._isClosed = false;
}; };
DirectoryIterator.prototype = { DirectoryIterator.prototype = {
iterator: function () this,
__iterator__: function () this,
/** /**
* Determine whether the directory exists. * Determine whether the directory exists.
* *