Skip to content

Incorrect prototype handling #207

@SeeSpring

Description

@SeeSpring
let a = {a:0}
let b = {get a(){return 0}}
let c = Math.random() ? a : b
let d = {}
Object.setPrototypeOf(d, c)
let e = ''
if ('a' in d) {
  e = 0
}
e.toUpperCase()

Throws Uncaught TypeError: e.toUpperCase is not a function at runtime

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcheckingIssues around checking

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions