File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,10 @@ fn import_uncached_module(
23
23
24
24
let notfound_error = vm. context ( ) . exceptions . module_not_found_error . clone ( ) ;
25
25
let import_error = vm. context ( ) . exceptions . import_error . clone ( ) ;
26
- console ! ( log, "file path blah" ) ;
27
26
28
27
// Time to search for module in any place:
29
28
let file_path = find_source ( vm, current_path, module)
30
29
. map_err ( |e| vm. new_exception ( notfound_error. clone ( ) , e) ) ?;
31
- dbg ! ( & file_path) ;
32
- console ! ( log, "file path: {:?} " , format!( "{:?}" , file_path) ) ;
33
30
let source = util:: read_file ( file_path. as_path ( ) )
34
31
. map_err ( |e| vm. new_exception ( import_error. clone ( ) , e. to_string ( ) ) ) ?;
35
32
let code_obj = compile:: compile (
Original file line number Diff line number Diff line change @@ -20,14 +20,10 @@ pub fn read_file(path: &Path) -> Result<String> {
20
20
let key = path. to_str ( ) . unwrap ( ) ;
21
21
let window = stdweb:: web:: window ( ) ;
22
22
let storage = window. local_storage ( ) ;
23
- console ! ( log, key) ;
24
23
let ret = storage
25
24
. get ( key)
26
25
. map ( |i|base64:: decode ( & i) . unwrap ( ) )
27
26
. map ( |i|std:: str:: from_utf8 ( & i) . unwrap ( ) . to_owned ( ) )
28
27
. ok_or ( Error :: new ( ErrorKind :: NotFound , "not found in local storage" ) ) ;
29
-
30
- console ! ( log, format!( "{:?}" , ret) ) ;
31
-
32
28
ret
33
29
}
You can’t perform that action at this time.
0 commit comments