Skip to content

Commit

Permalink
xplat (facebook#184)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookresearch/playtorch#184

X-link: facebookincubator/spectrum#1851

X-link: facebook/flipper#4439

Pull Request resolved: facebook#888

X-link: facebook/yoga#1212

Reviewed By: ebgraham

Differential Revision: D42472880

fbshipit-source-id: a3b933d4a6043de72975eaab883c435e8f0a4047
  • Loading branch information
Erich Graham authored and facebook-github-bot committed Jan 12, 2023
1 parent 2ffd972 commit 9048c35
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
26 changes: 13 additions & 13 deletions tools/fuzzers/fuzzilli/profile/HermesProfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<CodeGenerator>([]),
additionalCodeGenerators: WeightedList<CodeGenerator>([]),

additionalProgramTemplates: WeightedList<ProgramTemplate>([]),
additionalProgramTemplates: WeightedList<ProgramTemplate>([]),

disabledCodeGenerators: ["AsyncArrowFunctionGenerator", "AsyncGeneratorFunctionGenerator", "ClassGenerator", "WithStatementGenerator"],
disabledCodeGenerators: ["AsyncArrowFunctionGenerator", "AsyncGeneratorFunctionGenerator", "ClassGenerator", "WithStatementGenerator"],

additionalBuiltins: [
"gc" : .function([] => .undefined),
"print" : .function([] => .undefined),
]
additionalBuiltins: [
"gc": .function([] => .undefined),
"print": .function([] => .undefined),
]
)
26 changes: 13 additions & 13 deletions tools/fuzzers/fuzzilli/profile/Profile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<CodeGenerator>
let additionalProgramTemplates: WeightedList<ProgramTemplate>
let additionalCodeGenerators: WeightedList<CodeGenerator>
let additionalProgramTemplates: WeightedList<ProgramTemplate>

let disabledCodeGenerators: [String]
let disabledCodeGenerators: [String]

let additionalBuiltins: [String: Type]
let additionalBuiltins: [String: Type]
}

let profiles = [
"hermes": hermesProfile,
"hermes": hermesProfile,
]

0 comments on commit 9048c35

Please sign in to comment.