Skip to content

Commit

Permalink
[fix] jsparse: lex comments in String.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuraa committed Aug 17, 2012
1 parent 8aef34e commit 7523ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/jslang/jsParse.ml
Expand Up @@ -633,7 +633,8 @@ let stream_of_file lex_comments file =
module String =
struct
let code ?throw_exn str =
build_parser ?throw_exn code (JsLex.stream_of_string str)
build_parser ?throw_exn code
(JsLex.stream_of_string ~lex_comments:true str)
let expr ?throw_exn ?globalize str =
build_parser ?throw_exn ~globalize:(global_expr ?globalize)
expr (JsLex.stream_of_string ~lex_comments:true str)
Expand Down

0 comments on commit 7523ad9

Please sign in to comment.