Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 199 Bytes

prototype-inheritence.md

File metadata and controls

15 lines (13 loc) · 199 Bytes

Issue of prototypal inheritance transparency

class Test {
	#foo = 42
	foo() {
		return this.#foo
	}
}
const test = Object.create(new Test())
test.foo() // throw

老的类库 互操作性