This should be passing but is not. Ran it on CodePen and is ok. Could this be a bug in the test? Thank you.
CODE:
class Size{
constructor(width = 80, height = 60){
this.width = width;
this.height = height;
}
resize(newWidth,newHeight){
this.width = newWidth < 1 ? 1 : newWidth;
this.height = newHeight < 1 ? 1 : newHeight;
}
}
ERROR:
TypeError: _windowingSystem.Size is not a constructor