From c113df1bb8a0c7d0c560ad32c0291c918c7da7b4 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 6 Dec 2018 23:05:36 -0500 Subject: Process source maps in Rust instead of JS (#1280) - Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl. --- libdeno/snapshot_creator.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libdeno/snapshot_creator.cc') diff --git a/libdeno/snapshot_creator.cc b/libdeno/snapshot_creator.cc index cfdd35804..fe9011c9d 100644 --- a/libdeno/snapshot_creator.cc +++ b/libdeno/snapshot_creator.cc @@ -30,9 +30,7 @@ int main(int argc, char** argv) { deno_init(); deno_config config = {deno::empty_buf, nullptr}; - Deno* d = deno_new_snapshotter( - config, js_fn, js_source.c_str(), - source_map_fn != nullptr ? source_map.c_str() : nullptr); + Deno* d = deno_new_snapshotter(config, js_fn, js_source.c_str()); auto snapshot = deno_get_snapshot(d); -- cgit v1.2.3