Bug 1204834 - OS.File.writeAtomic should have the path argument in its closure. r=yoric

This commit is contained in:
Georg Fritzsche 2015-09-15 17:17:00 +07:00
Родитель bc36c933d1
Коммит 274a1f794e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1176,7 +1176,7 @@ File.writeAtomic = function writeAtomic(path, buffer, options = {}) {
let promise = Scheduler.post("writeAtomic",
[Type.path.toMsg(path),
Type.void_t.in_ptr.toMsg(buffer),
options], [options, buffer]);
options], [options, buffer, path]);
TelemetryStopwatch.finish("OSFILE_WRITEATOMIC_JANK_MS", refObj);
return promise;
};