1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00
This commit is contained in:
Ryan Dahl 2019-03-11 23:25:18 -04:00
parent 6b07ed189c
commit 9691d7b53b
2 changed files with 66 additions and 66 deletions

View file

@ -1,74 +1,74 @@
union Any {
Start,
StartRes,
FormatError,
FormatErrorRes,
WorkerGetMessage,
WorkerGetMessageRes,
WorkerPostMessage,
FetchModuleMetaData,
FetchModuleMetaDataRes,
SetTimeout,
Exit,
Environ,
EnvironRes,
Permissions,
PermissionRevoke,
PermissionsRes,
Fetch,
FetchRes,
MakeTempDir,
MakeTempDirRes,
Mkdir,
Chmod,
Remove,
ReadFile,
ReadFileRes,
ReadDir,
ReadDirRes,
WriteFile,
CopyFile,
Rename,
Readlink,
ReadlinkRes,
ReplStart,
ReplStartRes,
ReplReadline,
ReplReadlineRes,
Resources,
ResourcesRes,
Symlink,
Stat,
StatRes,
SetEnv,
Truncate,
Open,
OpenRes,
Read,
ReadRes,
Write,
WriteRes,
Close,
Shutdown,
Listen,
ListenRes,
Accept,
Dial,
NewConn,
Chdir,
Chmod,
Close,
CopyFile,
Cwd,
CwdRes,
Dial,
Environ,
EnvironRes,
Exit,
Fetch,
FetchModuleMetaData,
FetchModuleMetaDataRes,
FetchRes,
FormatError,
FormatErrorRes,
IsTTY,
IsTTYRes,
Listen,
ListenRes,
MakeTempDir,
MakeTempDirRes,
Metrics,
MetricsRes,
Mkdir,
NewConn,
Now,
NowRes,
Open,
OpenRes,
PermissionRevoke,
Permissions,
PermissionsRes,
Read,
ReadDir,
ReadDirRes,
ReadFile,
ReadFileRes,
ReadRes,
Readlink,
ReadlinkRes,
Remove,
Rename,
ReplReadline,
ReplReadlineRes,
ReplStart,
ReplStartRes,
Resources,
ResourcesRes,
Run,
RunRes,
RunStatus,
RunStatusRes,
Now,
NowRes,
IsTTY,
IsTTYRes,
Seek,
SetEnv,
SetTimeout,
Shutdown,
Start,
StartRes,
Stat,
StatRes,
Symlink,
Truncate,
WorkerGetMessage,
WorkerGetMessageRes,
WorkerPostMessage,
Write,
WriteFile,
WriteRes,
}
enum ErrorKind: byte {

View file

@ -93,23 +93,27 @@ pub fn dispatch(
msg::Any::Chdir => op_chdir,
msg::Any::Chmod => op_chmod,
msg::Any::Close => op_close,
msg::Any::FetchModuleMetaData => op_fetch_module_meta_data,
msg::Any::CopyFile => op_copy_file,
msg::Any::Cwd => op_cwd,
msg::Any::Dial => op_dial,
msg::Any::Environ => op_env,
msg::Any::Exit => op_exit,
msg::Any::Fetch => op_fetch,
msg::Any::FetchModuleMetaData => op_fetch_module_meta_data,
msg::Any::FormatError => op_format_error,
msg::Any::IsTTY => op_is_tty,
msg::Any::Listen => op_listen,
msg::Any::MakeTempDir => op_make_temp_dir,
msg::Any::Metrics => op_metrics,
msg::Any::Mkdir => op_mkdir,
msg::Any::Now => op_now,
msg::Any::Open => op_open,
msg::Any::PermissionRevoke => op_revoke_permission,
msg::Any::Permissions => op_permissions,
msg::Any::Read => op_read,
msg::Any::ReadDir => op_read_dir,
msg::Any::ReadFile => op_read_file,
msg::Any::Readlink => op_read_link,
msg::Any::Read => op_read,
msg::Any::Remove => op_remove,
msg::Any::Rename => op_rename,
msg::Any::ReplReadline => op_repl_readline,
@ -117,6 +121,7 @@ pub fn dispatch(
msg::Any::Resources => op_resources,
msg::Any::Run => op_run,
msg::Any::RunStatus => op_run_status,
msg::Any::Seek => op_seek,
msg::Any::SetEnv => op_set_env,
msg::Any::Shutdown => op_shutdown,
msg::Any::Start => op_start,
@ -127,11 +132,6 @@ pub fn dispatch(
msg::Any::WorkerPostMessage => op_worker_post_message,
msg::Any::Write => op_write,
msg::Any::WriteFile => op_write_file,
msg::Any::Now => op_now,
msg::Any::IsTTY => op_is_tty,
msg::Any::Seek => op_seek,
msg::Any::Permissions => op_permissions,
msg::Any::PermissionRevoke => op_revoke_permission,
_ => panic!(format!(
"Unhandled message {}",
msg::enum_name_any(inner_type)