Skip to content

may remove this assert  #424

Open
Open
@turboliner

Description

@turboliner
    /// 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions