Fix a bug with the `static` keyword if experimental JS is enabled