-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
…Long' instead, see #718
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,7 +250,7 @@ function buildFunction(type, functionName, gen, scope) { | |
push("};"); | ||
} | ||
|
||
function toJsType(field) { | ||
function toJsType(field, isReturn) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dcodeIO
Author
Member
|
||
switch (field.type) { | ||
case "double": | ||
case "float": | ||
|
@@ -265,7 +265,7 @@ function toJsType(field) { | |
case "sint64": | ||
case "fixed64": | ||
case "sfixed64": | ||
return "number|Long"; | ||
return isReturn ? "Long" : "number|Long"; | ||
case "bool": | ||
return "boolean"; | ||
case "string": | ||
|
How is this meant to be used? The generated code still has
number|Long
becausetoJsType
is never called with two arguments.