summaryrefslogtreecommitdiff
path: root/deno_typescript
diff options
context:
space:
mode:
Diffstat (limited to 'deno_typescript')
-rw-r--r--deno_typescript/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs
index 8ee2c2c01..f10ce5b48 100644
--- a/deno_typescript/lib.rs
+++ b/deno_typescript/lib.rs
@@ -232,7 +232,7 @@ fn write_snapshot(
snapshot_filename: &Path,
) -> Result<(), ErrBox> {
println!("Creating snapshot...");
- let snapshot = runtime_isolate.snapshot()?;
+ let snapshot = runtime_isolate.snapshot();
let snapshot_slice: &[u8] = &*snapshot;
println!("Snapshot size: {}", snapshot_slice.len());
fs::write(&snapshot_filename, snapshot_slice)?;