googleprojectzero / fuzzilli

A JavaScript Engine Fuzzer
Apache License 2.0
1.86k stars 300 forks source link

Some features miss #433

Open Arashimu opened 4 months ago

Arashimu commented 4 months ago

Is there any method provided to generate jsClass? Or maybe I should rewrite the equivalent code of jsClass into jsFunction

saelo commented 1 month ago

Fuzzilli's IL fully supports classes: https://github.com/googleprojectzero/fuzzilli/blob/73f3ca1818724122b67ed437b7b224fc56adc400/Sources/Fuzzilli/FuzzIL/JsOperations.swift#L415 and here is an example of how to construct classes in the IL: https://github.com/googleprojectzero/fuzzilli/blob/73f3ca1818724122b67ed437b7b224fc56adc400/Tests/FuzzilliTests/ProgramBuilderTest.swift#L599 The JS->FuzzIL compiler should also support most class features. Does that answer your question?