зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1204834 - OS.File.writeAtomic should have the path argument in its closure. r=yoric
This commit is contained in:
Родитель
bc36c933d1
Коммит
274a1f794e
|
@ -1176,7 +1176,7 @@ File.writeAtomic = function writeAtomic(path, buffer, options = {}) {
|
||||||
let promise = Scheduler.post("writeAtomic",
|
let promise = Scheduler.post("writeAtomic",
|
||||||
[Type.path.toMsg(path),
|
[Type.path.toMsg(path),
|
||||||
Type.void_t.in_ptr.toMsg(buffer),
|
Type.void_t.in_ptr.toMsg(buffer),
|
||||||
options], [options, buffer]);
|
options], [options, buffer, path]);
|
||||||
TelemetryStopwatch.finish("OSFILE_WRITEATOMIC_JANK_MS", refObj);
|
TelemetryStopwatch.finish("OSFILE_WRITEATOMIC_JANK_MS", refObj);
|
||||||
return promise;
|
return promise;
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче