summaryrefslogtreecommitdiff
path: root/src/msg.fbs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-02-19 02:42:15 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-02-18 10:42:15 -0500
commit54094c7510042fd73bba3cb96407587c62db3166 (patch)
treebce80bc1e2cb093b1de04f2429042f779be28f87 /src/msg.fbs
parent9e942f30b97f1b4fc3321161724befc368ea314c (diff)
Rationalise compiler ops (#1740)
Diffstat (limited to 'src/msg.fbs')
-rw-r--r--src/msg.fbs20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/msg.fbs b/src/msg.fbs
index 81345d156..fcf29ad58 100644
--- a/src/msg.fbs
+++ b/src/msg.fbs
@@ -6,9 +6,8 @@ union Any {
WorkerGetMessage,
WorkerGetMessageRes,
WorkerPostMessage,
- CodeFetch,
- CodeFetchRes,
- CodeCache,
+ FetchModuleMetaData,
+ FetchModuleMetaDataRes,
SetTimeout,
Exit,
Environ,
@@ -186,28 +185,19 @@ table WorkerPostMessage {
// data passed thru the zero-copy data parameter.
}
-table CodeFetch {
+table FetchModuleMetaData {
specifier: string;
referrer: string;
}
-table CodeFetchRes {
+table FetchModuleMetaDataRes {
// If it's a non-http module, moduleName and filename will be the same.
// For http modules, moduleName is its resolved http URL, and filename
// is the location of the locally downloaded source code.
module_name: string;
filename: string;
media_type: MediaType;
- // TODO These should be [ubyte].
- // See: https://github.com/denoland/deno/issues/1113
- source_code: string;
-}
-
-table CodeCache {
- filename: string;
- source_code: string;
- output_code: string;
- source_map: string;
+ data: [ubyte];
}
table Chdir {