hegel icon indicating copy to clipboard operation
hegel copied to clipboard

Errors when extending HTMLElement or Event classes

Open web-padawan opened this issue 5 years ago • 1 comments

I'm getting the following error when attempting to extend built-in classes.

Cannot use 'in' operator to search for 'start' in undefined

The following examples produce the error:

// error
class MyElement extends HTMLElement {
}

// error
class MyEvent extends Event {
}

I also tried class MyArray extends Array and it worked.

web-padawan avatar Jul 15 '20 08:07 web-padawan

Hi @web-padawan. Currently, the browser environment still in development. We try to implement it as soon as possible. Thank you for the issue and your interest in the project ^_^

JSMonk avatar Jul 15 '20 20:07 JSMonk