summaryrefslogtreecommitdiff
path: root/src/msg.fbs
diff options
context:
space:
mode:
authorF001 <changchun.fan@qq.com>2018-12-12 17:43:42 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-12-12 04:43:42 -0500
commite976b3e0414dc768624b77e431ee7f55b03b76a4 (patch)
tree7996df0a824af4875e19d92d916a4eee14567bb0 /src/msg.fbs
parent65dd0d516d14ff0ec5ec37513efc10b7882172e6 (diff)
use byte array instead of string for code fetch (#1307)
Diffstat (limited to 'src/msg.fbs')
-rw-r--r--src/msg.fbs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/msg.fbs b/src/msg.fbs
index e1c90e3ad..8e333a114 100644
--- a/src/msg.fbs
+++ b/src/msg.fbs
@@ -157,18 +157,16 @@ table CodeFetchRes {
module_name: string;
filename: string;
media_type: MediaType;
- // TODO These should be [ubyte].
- // See: https://github.com/denoland/deno/issues/1113
- source_code: string;
- output_code: string; // Non-empty only if cached.
- source_map: string; // Non-empty only if cached.
+ source_code: [ubyte];
+ output_code: [ubyte]; // Non-empty only if cached.
+ source_map: [ubyte]; // Non-empty only if cached.
}
table CodeCache {
filename: string;
- source_code: string;
- output_code: string;
- source_map: string;
+ source_code: [ubyte];
+ output_code: [ubyte];
+ source_map: [ubyte];
}
table Chdir {