Invalid output for class with .prototype.constructor
deleted
#556
Labels
bug
Something isn't working
.prototype.constructor
deleted
#556
Input:
Output:
This output throws error
TypeError: Cannot redefine property: prototype
.The output would be correct if
C
was a function, not a class. Problem is that theprototype
property of classes is not writable or configurable (unlike functions).The text was updated successfully, but these errors were encountered: