Re: Proxy Reflect.has() call causes infinite recursion? (#!/JoePea)

2019-11-21 Thread #!/JoePea
Any idea why it isn't spamming the console? I mean, if it is recursive, shouldn't it fire my console.logs over and over, like 50,000 times, before finally throwing the error? On Thu, Nov 21, 2019 at 3:12 PM Alex Vincent wrote: > > I'm afraid your testcase is still far too complicated to really

Re: Proxy Reflect.has() call causes infinite recursion? (#!/JoePea)

2019-11-21 Thread Alex Vincent
I'm afraid your testcase is still far too complicated to really figure out at first glance. It looks like you're trying to implement a mixin pattern. In my experience, it's better to implement the getPrototypeOf, getOwnPropertyDescriptor, and defineProperty traps, and maybe make your get, set,

Re: Proxy Reflect.has() call causes infinite recursion?

2019-11-21 Thread #!/JoePea
Sorry you all, I realized I should've simplified it. Here's a [simpler fiddle](https://jsfiddle.net/trusktr/tf6hdn48/6/). On Thu, Nov 21, 2019 at 1:17 PM #!/JoePea wrote: > > I was trying to implement "multiple inheritance" in the following code >

Proxy Reflect.has() call causes infinite recursion?

2019-11-21 Thread #!/JoePea
I was trying to implement "multiple inheritance" in the following code ([jsfiddle](https://jsfiddle.net/trusktr/tf6hdn48/)), but it gives a max call stack (infinite recursion) error. However, the infinite recursion does not execute any of my console.log statements repeatedly like I'd expect, so