1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix: Deno.fdata(), Deno.fdatasync() (#8193)

These APIs were stabilized in 1.5.0, but were
never added to the "stable" Deno namespace. This
commit fixes that.
This commit is contained in:
Bartek Iwańczuk 2020-10-30 13:06:09 +01:00 committed by GitHub
parent 4f57ca0daf
commit ce75101e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,10 @@ __bootstrap.denoNs = {
connectTls: __bootstrap.tls.connectTls, connectTls: __bootstrap.tls.connectTls,
listenTls: __bootstrap.tls.listenTls, listenTls: __bootstrap.tls.listenTls,
sleepSync: __bootstrap.timers.sleepSync, sleepSync: __bootstrap.timers.sleepSync,
fsyncSync: __bootstrap.fs.fsyncSync,
fsync: __bootstrap.fs.fsync,
fdatasyncSync: __bootstrap.fs.fdatasyncSync,
fdatasync: __bootstrap.fs.fdatasync,
}; };
__bootstrap.denoNsUnstable = { __bootstrap.denoNsUnstable = {
@ -125,10 +129,6 @@ __bootstrap.denoNsUnstable = {
utimeSync: __bootstrap.fs.utimeSync, utimeSync: __bootstrap.fs.utimeSync,
symlink: __bootstrap.fs.symlink, symlink: __bootstrap.fs.symlink,
symlinkSync: __bootstrap.fs.symlinkSync, symlinkSync: __bootstrap.fs.symlinkSync,
fdatasyncSync: __bootstrap.fs.fdatasyncSync,
fdatasync: __bootstrap.fs.fdatasync,
fsyncSync: __bootstrap.fs.fsyncSync,
fsync: __bootstrap.fs.fsync,
HttpClient: __bootstrap.fetch.HttpClient, HttpClient: __bootstrap.fetch.HttpClient,
createHttpClient: __bootstrap.fetch.createHttpClient, createHttpClient: __bootstrap.fetch.createHttpClient,
}; };