From 9048c3569ff750519018768f22c7b863190ecdd8 Mon Sep 17 00:00:00 2001 From: Erich Graham Date: Thu, 12 Jan 2023 10:53:24 -0800 Subject: [PATCH] xplat (#184) Summary: X-link: https://github.com/facebookresearch/playtorch/pull/184 X-link: https://github.com/facebookincubator/spectrum/pull/1851 X-link: https://github.com/facebook/flipper/pull/4439 Pull Request resolved: https://github.com/facebook/hermes/pull/888 X-link: https://github.com/facebook/yoga/pull/1212 Reviewed By: ebgraham Differential Revision: D42472880 fbshipit-source-id: a3b933d4a6043de72975eaab883c435e8f0a4047 --- .../fuzzilli/profile/HermesProfile.swift | 26 +++++++++---------- tools/fuzzers/fuzzilli/profile/Profile.swift | 26 +++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) 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, ]