File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Sources/Fuzzilli/Compiler/Parser Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ function parse(script, proto) {
159159 property . name = field . key . name ;
160160 } else if ( field . key . type === 'NumericLiteral' ) {
161161 property . index = field . key . value ;
162+ } else if ( field . key . type === 'StringLiteral' ) {
163+ property . name = field . key . value ;
162164 } else {
163165 throw "Unknown property key type: " + field . key . type + " in class declaration" ;
164166 }
@@ -407,6 +409,8 @@ function parse(script, proto) {
407409 property . name = field . key . name ;
408410 } else if ( field . key . type === 'NumericLiteral' ) {
409411 property . index = field . key . value ;
412+ } else if ( field . key . type === 'StringLiteral' ) {
413+ property . name = field . key . value ;
410414 } else {
411415 throw "Unknown property key type: " + field . key . type ;
412416 }
You can’t perform that action at this time.
0 commit comments