Skip to content

有几个 bad case 会报错:Cannot read properties of undefined (reading 'match') #126

Closed
@fuxu

Description

@fuxu
  • 使用 `||` 时,title 会先转化为布尔值判断,为 true 时返回 title,false 返回 'title'
  • ### 5.1 “Attention Is All You Need”
  • How it works: The novel HTTP/2 ‘Rapid Reset’ DDoS attack

以上三个 case,在 0.7.1 中,会抛出 Cannot read properties of undefined (reading 'match') 的错误

在 Playground 里面也可以复现

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions