mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
Format
This commit is contained in:
parent
e4990804fa
commit
32f0c37a42
3 changed files with 12 additions and 6 deletions
|
@ -93,9 +93,15 @@ To build:
|
||||||
# Build.
|
# Build.
|
||||||
./tools/build.py
|
./tools/build.py
|
||||||
|
|
||||||
# Run
|
# Run.
|
||||||
./out/debug/deno tests/002_hello.ts
|
./out/debug/deno tests/002_hello.ts
|
||||||
|
|
||||||
|
# Test.
|
||||||
|
./tools/test.py
|
||||||
|
|
||||||
|
# Format code.
|
||||||
|
./tools/format.py
|
||||||
|
|
||||||
Other useful commands:
|
Other useful commands:
|
||||||
|
|
||||||
# Call ninja manually.
|
# Call ninja manually.
|
||||||
|
|
|
@ -206,8 +206,8 @@ testPerm({ write: false }, function mkdDirSyncPerm() {
|
||||||
|
|
||||||
testPerm({ write: true }, function renameSync() {
|
testPerm({ write: true }, function renameSync() {
|
||||||
const testDir = deno.makeTempDirSync() + "/test-rename";
|
const testDir = deno.makeTempDirSync() + "/test-rename";
|
||||||
const oldpath = testDir + "/oldpath"
|
const oldpath = testDir + "/oldpath";
|
||||||
const newpath = testDir + "/newpath"
|
const newpath = testDir + "/newpath";
|
||||||
deno.mkdirSync(oldpath);
|
deno.mkdirSync(oldpath);
|
||||||
deno.renameSync(oldpath, newpath);
|
deno.renameSync(oldpath, newpath);
|
||||||
const newPathInfo = deno.statSync(newpath);
|
const newPathInfo = deno.statSync(newpath);
|
||||||
|
|
|
@ -676,9 +676,9 @@ fn handle_timer_clear(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle_rename_sync(
|
fn handle_rename_sync(
|
||||||
d: *const DenoC,
|
d: *const DenoC,
|
||||||
base: msg::Base,
|
base: msg::Base,
|
||||||
_builder: &mut FlatBufferBuilder,
|
_builder: &mut FlatBufferBuilder,
|
||||||
) -> HandlerResult {
|
) -> HandlerResult {
|
||||||
let msg = base.msg_as_rename_sync().unwrap();
|
let msg = base.msg_as_rename_sync().unwrap();
|
||||||
let oldpath = msg.oldpath().unwrap();
|
let oldpath = msg.oldpath().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue