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
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,
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
>
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
4 matches
Mail list logo