Ensure fp convert can work with aliases as name.

This commit is contained in:
John-David Dalton
2016-01-27 00:13:50 -08:00
parent cae0d2c707
commit 0105b93f38
3 changed files with 35 additions and 7 deletions

View File

@@ -149,6 +149,7 @@ function baseConvert(util, name, func) {
};
var wrap = function(name, func) {
name = mapping.aliasToReal[name] || name;
var wrapper = wrappers[name];
if (wrapper) {
return wrapper(func);