diff --git a/tools/fuzzers/fuzzilli/profile/HermesProfile.swift b/tools/fuzzers/fuzzilli/profile/HermesProfile.swift index 597d0b430d7..402b269d92a 100644 --- a/tools/fuzzers/fuzzilli/profile/HermesProfile.swift +++ b/tools/fuzzers/fuzzilli/profile/HermesProfile.swift @@ -8,30 +8,30 @@ import Fuzzilli let hermesProfile = Profile( - processArguments: ["--replr"], + processArguments: ["--replr"], - processEnv: ["UBSAN_OPTIONS": "handle_segv=0"], + processEnv: ["UBSAN_OPTIONS": "handle_segv=0"], - codePrefix: """ + codePrefix: """ function main(){ """, - codeSuffix: """ + codeSuffix: """ }; main(); """, - ecmaVersion: ECMAScriptVersion.es6, + ecmaVersion: ECMAScriptVersion.es6, - crashTests: ["fuzzilli('FUZZILLI_CRASH', 0)", "fuzzilli('FUZZILLI_CRASH', 1)", "fuzzilli('FUZZILLI_CRASH', 2)"], + crashTests: ["fuzzilli('FUZZILLI_CRASH', 0)", "fuzzilli('FUZZILLI_CRASH', 1)", "fuzzilli('FUZZILLI_CRASH', 2)"], - additionalCodeGenerators: WeightedList([]), + additionalCodeGenerators: WeightedList([]), - additionalProgramTemplates: WeightedList([]), + additionalProgramTemplates: WeightedList([]), - disabledCodeGenerators: ["AsyncArrowFunctionGenerator", "AsyncGeneratorFunctionGenerator", "ClassGenerator", "WithStatementGenerator"], + disabledCodeGenerators: ["AsyncArrowFunctionGenerator", "AsyncGeneratorFunctionGenerator", "ClassGenerator", "WithStatementGenerator"], - additionalBuiltins: [ - "gc" : .function([] => .undefined), - "print" : .function([] => .undefined), - ] + additionalBuiltins: [ + "gc": .function([] => .undefined), + "print": .function([] => .undefined), + ] ) diff --git a/tools/fuzzers/fuzzilli/profile/Profile.swift b/tools/fuzzers/fuzzilli/profile/Profile.swift index e0116723383..78421b8fff1 100644 --- a/tools/fuzzers/fuzzilli/profile/Profile.swift +++ b/tools/fuzzers/fuzzilli/profile/Profile.swift @@ -15,24 +15,24 @@ import Fuzzilli struct Profile { - let processArguments: [String] - let processEnv: [String : String] - let codePrefix: String - let codeSuffix: String - let ecmaVersion: ECMAScriptVersion + let processArguments: [String] + let processEnv: [String: String] + let codePrefix: String + let codeSuffix: String + let ecmaVersion: ECMAScriptVersion - // JavaScript code snippets that cause a crash in the target engine. - // Used to verify that crashes can be detected. - let crashTests: [String] + // JavaScript code snippets that cause a crash in the target engine. + // Used to verify that crashes can be detected. + let crashTests: [String] - let additionalCodeGenerators: WeightedList - let additionalProgramTemplates: WeightedList + let additionalCodeGenerators: WeightedList + let additionalProgramTemplates: WeightedList - let disabledCodeGenerators: [String] + let disabledCodeGenerators: [String] - let additionalBuiltins: [String: Type] + let additionalBuiltins: [String: Type] } let profiles = [ - "hermes": hermesProfile, + "hermes": hermesProfile, ]