2024-03-25 11:22:01 -04:00
|
|
|
console.log("window is", globalThis.window);
|
2024-03-26 11:56:52 -04:00
|
|
|
console.log("Deno.Buffer is", Deno.Buffer);
|
|
|
|
console.log("Deno.close is", Deno.close);
|
|
|
|
console.log("Deno.copy is", Deno.copy);
|
|
|
|
console.log("Deno.File is", Deno.File);
|
|
|
|
console.log("Deno.fstat is", Deno.fstat);
|
|
|
|
console.log("Deno.fstatSync is", Deno.fstatSync);
|
|
|
|
console.log("Deno.ftruncate is", Deno.ftruncate);
|
|
|
|
console.log("Deno.ftruncateSync is", Deno.ftruncateSync);
|
|
|
|
console.log("Deno.flock is", Deno.flock);
|
|
|
|
console.log("Deno.flockSync is", Deno.flockSync);
|
2024-03-27 08:45:19 -04:00
|
|
|
console.log(
|
|
|
|
"Deno.FsFile.prototype.rid is",
|
|
|
|
Deno.openSync(import.meta.filename).rid,
|
|
|
|
);
|
2024-03-26 11:56:52 -04:00
|
|
|
console.log("Deno.funlock is", Deno.funlock);
|
|
|
|
console.log("Deno.funlockSync is", Deno.funlockSync);
|
|
|
|
console.log("Deno.iter is", Deno.iter);
|
|
|
|
console.log("Deno.iterSync is", Deno.iterSync);
|
|
|
|
console.log("Deno.metrics is", Deno.metrics);
|
|
|
|
console.log("Deno.readAll is", Deno.readAll);
|
|
|
|
console.log("Deno.readAllSync is", Deno.readAllSync);
|
|
|
|
console.log("Deno.read is", Deno.read);
|
|
|
|
console.log("Deno.readSync is", Deno.readSync);
|
2024-03-27 08:39:26 -04:00
|
|
|
console.log("Deno.resources is", Deno.resources);
|
2024-03-26 11:56:52 -04:00
|
|
|
console.log("Deno.seek is", Deno.seek);
|
|
|
|
console.log("Deno.seekSync is", Deno.seekSync);
|
|
|
|
console.log("Deno.shutdown is", Deno.shutdown);
|
|
|
|
console.log("Deno.writeAll is", Deno.writeAll);
|
|
|
|
console.log("Deno.writeAllSync is", Deno.writeAllSync);
|
|
|
|
console.log("Deno.write is", Deno.write);
|
|
|
|
console.log("Deno.writeSync is", Deno.writeSync);
|
2024-04-04 12:27:18 -04:00
|
|
|
|
2024-04-07 03:46:39 -04:00
|
|
|
const watcher = Deno.watchFs(".");
|
|
|
|
console.log("Deno.FsWatcher.prototype.rid is", watcher.rid);
|
|
|
|
watcher.close();
|
|
|
|
|
2024-04-07 01:42:53 -04:00
|
|
|
try {
|
|
|
|
new Deno.FsFile(0);
|
|
|
|
} catch (error) {
|
|
|
|
if (
|
|
|
|
error instanceof TypeError &&
|
|
|
|
error.message ===
|
|
|
|
"`Deno.FsFile` cannot be constructed, use `Deno.open()` or `Deno.openSync()` instead."
|
|
|
|
) {
|
|
|
|
console.log("Deno.FsFile constructor is illegal");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-04 12:27:18 -04:00
|
|
|
self.close();
|