Browse files

[fix] plugin: Take care of builtin plugins

  • Loading branch information...
1 parent 2883459 commit d426d643c94046acc8c98d9c48828c5ca5dcf931 @BourgerieQuentin BourgerieQuentin committed Nov 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compiler/libbsl/bslJs.ml
View
2 compiler/libbsl/bslJs.ml
@@ -851,7 +851,7 @@ let preprocess ~options ~plugins ~dynloader_interface ~depends ~lang ~js_confs d
else code
in
let env = empty ~name:(Printf.sprintf "%s.%s"
- (Option.get options.BI.basename)
+ (Option.default "builtin" options.BI.basename)
BslConvention.Extension.plugin) in
let sep_env = SeparatedEnv.init ~ty_spec_map:env.ty_spec_map ~renaming:env.renaming in
let sep_env = List.fold_left SeparatedEnv.fold sep_env plugins in

0 comments on commit d426d64

Please sign in to comment.