Skip to content

Commit

Permalink
Trailing whitespace patrol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Garcia committed Sep 25, 2012
1 parent 1f2f915 commit 2a0c35d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions genjs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type ctx = {
buf : Buffer.t;
packages : (string list,unit) Hashtbl.t;
smap : sourcemap;
js_modern : bool;
js_modern : bool;
mutable current : tclass;
mutable statics : (tclass * string * texpr) list;
mutable inits : texpr list;
Expand Down Expand Up @@ -358,7 +358,7 @@ let rec gen_call ctx e el in_value =
| TLocal { v_name = "__js__" }, [{ eexpr = TConst (TString code) }] ->
spr ctx (String.concat "\n" (ExtString.String.nsplit code "\r\n"))
| TLocal ({v_name = "__define_feature__"}), [_;e] ->
gen_expr ctx e
gen_expr ctx e
| TLocal { v_name = "__feature__" }, { eexpr = TConst (TString f) } :: eif :: eelse ->
(if has_feature ctx f then
gen_value ctx eif
Expand Down Expand Up @@ -415,7 +415,7 @@ and gen_expr ctx e =
gen_value ctx x;
spr ctx (field "iterator");
print ctx " %s " (Ast.s_binop op);
gen_value ctx e2;
gen_value ctx e2;
| TBinop (op,e1,e2) ->
gen_value ctx e1;
print ctx " %s " (Ast.s_binop op);
Expand Down

0 comments on commit 2a0c35d

Please sign in to comment.