fuzzilli
fuzzilli copied to clipboard
may remove this assert
/// Emit one line of code.
mutating func emit<S: StringProtocol>(_ line: S) {
assert(!line.contains("\n")) // <---------
currentLineNumber += 1
if includeLineNumbers { code += "\(String(format: "%3i", currentLineNumber)). " }
code += currentIndention + line + "\n"
}
sometimes, TemplateLiteral expression may contains multiples line, that assert seems not to must.
https://github.com/googleprojectzero/fuzzilli/blob/main/Sources/Fuzzilli/Lifting/ScriptWriter.swift#L44