In current code, it is an early error to declare a static method statically named 'prototype'. (It's a runtime error if the name is computed, since evaluating the class definition will attempt to overwrite the non-configurable 'prototype' property of the constructor.)
Since static fields are likewise installed as properties of the constructor, static fields should have the same restriction. That is, this should be an early error:
In current code, it is an early error to declare a static method statically named 'prototype'. (It's a runtime error if the name is computed, since evaluating the class definition will attempt to overwrite the non-configurable 'prototype' property of the constructor.)
Since static fields are likewise installed as properties of the constructor, static fields should have the same restriction. That is, this should be an early error:
This PR accomplishes this.