sucrase icon indicating copy to clipboard operation
sucrase copied to clipboard

Unexpected token in namespaces only

Open jellelicht opened this issue 4 years ago • 1 comments

Feeding the following snippet to sucrase chokes on the character immediately after >= consistently, but only when seen in a namespace { ...} block:

function noProblemo() {
    if (10 >= 100) {}
    return
        
}
namespace problem {
    function someProblemo() {
        if (10 >= 100) {}
        return
    }
}

jellelicht avatar Jul 24 '19 12:07 jellelicht

Friendly ping :smiley:

jellelicht avatar Apr 24 '20 14:04 jellelicht