单项选择题

class CustomHTMLElement { constructor(element) { this.element = element; } get html() { return this.element.innerHTML; } set html(value) { this.element.innerHTML = value; }}var descriptor = Object.getOwnPropertyDescriptor( CustomHTMLElement.prototype, “html”);根据提干的执行结果正确的是()

A."get"in descriptor//false
B."set"in descriptor//false
C."set"in descriptor//true
D."get"in descriptor//TypeError:Class constructor Foo cannot be invoked without’new’