Skip to content

Commit

Permalink
fix(core/webidl-contiguous): generate valid fragments (closes #1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Mar 7, 2017
1 parent 590377e commit 91861db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/core/webidl-contiguous.js
Expand Up @@ -898,9 +898,7 @@ define(
defn.arguments.filter(function(arg) {
return !typeIsWhitespace(arg.type);
}).map(function(arg) {
var optional = arg.optional ? "optional-" : "";
var variadic = arg.variadic ? "..." : "";
return optional + idlType2Text(arg.idlType).toLowerCase() + variadic;
return arg.name.toLowerCase();
}).join(",").replace(/\s/g, "_") + ")");
break;
case "maplike":
Expand Down

0 comments on commit 91861db

Please sign in to comment.