Skip to content

Commit 2c2072c

Browse files
committed
remove debug statements
1 parent 531e41b commit 2c2072c

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

vm/src/import.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,10 @@ fn import_uncached_module(
2323

2424
let notfound_error = vm.context().exceptions.module_not_found_error.clone();
2525
let import_error = vm.context().exceptions.import_error.clone();
26-
console!(log, "file path blah");
2726

2827
// Time to search for module in any place:
2928
let file_path = find_source(vm, current_path, module)
3029
.map_err(|e| vm.new_exception(notfound_error.clone(), e))?;
31-
dbg!(&file_path);
32-
console!(log, "file path: {:?} ", format!("{:?}", file_path));
3330
let source = util::read_file(file_path.as_path())
3431
.map_err(|e| vm.new_exception(import_error.clone(), e.to_string()))?;
3532
let code_obj = compile::compile(

vm/src/util.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ pub fn read_file(path: &Path) -> Result<String> {
2020
let key = path.to_str().unwrap();
2121
let window = stdweb::web::window();
2222
let storage = window.local_storage();
23-
console!(log, key);
2423
let ret = storage
2524
.get(key)
2625
.map(|i|base64::decode(&i).unwrap())
2726
.map(|i|std::str::from_utf8(&i).unwrap().to_owned())
2827
.ok_or(Error::new(ErrorKind::NotFound, "not found in local storage"));
29-
30-
console!(log, format!("{:?}", ret));
31-
3228
ret
3329
}

0 commit comments

Comments
 (0)