Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown property key type: StringLiteral #416

Open
nth10sd opened this issue Feb 5, 2024 · 1 comment
Open

Unknown property key type: StringLiteral #416

nth10sd opened this issue Feb 5, 2024 · 1 comment

Comments

@nth10sd
Copy link

nth10sd commented Feb 5, 2024

node parser.js ../../Protobuf/ast.proto code.js output.ast.proto

code.js:

x = { "": 0 }

Tested on rev d42d6fa.

<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:393
                                throw "Unknown property key type: " + field.key.type;
                                ^
Unknown property key type: StringLiteral
Thrown at:
    at visitExpression (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:393:33)
    at visitExpression (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:375:27)
    at visitStatement (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:119:28)
    at visitProgram (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:51:37)
    at parse (<repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:561:12)
    at <repo>/Sources/Fuzzilli/Compiler/Parser/parser.js:570:15
    at finish (<repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/protobufjs/src/root.js:105:9)
    at process (<repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/protobufjs/src/root.js:143:13)
    at <repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/protobufjs/src/root.js:195:17
    at fetchReadFileCallback (<repo>/Sources/Fuzzilli/Compiler/Parser/node_modules/@protobufjs/fetch/index.js:51:19)
@areuu
Copy link

areuu commented Feb 11, 2024

This best to improve code by yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants