Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
453 changes: 362 additions & 91 deletions jscomp/bin/compiler.ml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions jscomp/js_config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type env =
let default_env = ref NodeJS

let ext = ref ".js"
let cmj_ext = ".cmj"
let get_ext () = !ext
let get_env () = !default_env

Expand Down
1 change: 1 addition & 0 deletions jscomp/js_config.mli
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type env =
| AmdJS
| Goog of string option

val cmj_ext : string
val get_env : unit -> env
val get_ext : unit -> string

Expand Down
2 changes: 1 addition & 1 deletion jscomp/js_implementation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ let implementation ppf sourcefile outputprefix =
match
Lam_compile_group.lambda_as_module
finalenv current_signature
sourcefile lambda with
sourcefile outputprefix lambda with
| e -> e
| exception e ->
(* Save to a file instead so that it will not scare user *)
Expand Down
Loading