Skip to content

New Enum breakage in static code. #641

@ehallander9591

Description

@ehallander9591

protobuf.js version: 6.5.0

After pulling the latest from git, I find that the generated static code is referencing 'values' while trying to resolve the numeric part of an enum.

In the code below types[2].values should simply be types[2][message.changeType]

                            case "changeType":
                                if (message.changeType !== undefined && message.changeType !== null) {
                                    object.changeType = options.enums === String ? types[2].values[message.changeType] : message.changeType;
                                }
                                break;
<please paste the stack trace of the error if applicable>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions