Permalink
Browse files

[fix] bslJs: keep comments in processed files.

We need comments when validating the plugins.
  • Loading branch information...
1 parent 525c656 commit e2c722622e9f6b0ba6853e407d3ad1042549ac06 @arthuraa arthuraa committed Aug 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 compiler/libbsl/bslJs.ml
View
@@ -807,7 +807,8 @@ let build_file_doc_like renaming env decorated_file =
let js_file = fbuffer () in
let js_file = add_file_line ~filename js_file in
let contents = rename renaming decorated_file.contents in
- let js_file = FBuffer.printf js_file "%a" JsPrint.pp#code contents in
+ let js_file = FBuffer.printf js_file "%a"
+ JsPrint.pp_keep_comments#code contents in
let js_code = FBuffer.contents js_file in
let file_js_code = filename, js_code in
let rev_files_js_code = file_js_code :: env.rev_files_js_code in

0 comments on commit e2c7226

Please sign in to comment.