diff options
Diffstat (limited to 'runtime/worker_bootstrap.rs')
-rw-r--r-- | runtime/worker_bootstrap.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/worker_bootstrap.rs b/runtime/worker_bootstrap.rs index 5563b6ead..12abceca6 100644 --- a/runtime/worker_bootstrap.rs +++ b/runtime/worker_bootstrap.rs @@ -58,8 +58,8 @@ impl Default for BootstrapOptions { } impl BootstrapOptions { - pub fn as_json(&self) -> String { - let payload = json!({ + pub fn as_json(&self) -> serde_json::Value { + json!({ // Shared bootstrap args "args": self.args, "cpuCount": self.cpu_count, @@ -80,7 +80,6 @@ impl BootstrapOptions { "v8Version": deno_core::v8_version(), "userAgent": self.user_agent, "inspectFlag": self.inspect, - }); - serde_json::to_string_pretty(&payload).unwrap() + }) } } |