Program "crashes" when I setResizable(true) and resize the Window

Does this break?

void setup(){
 size (320, 240);
 surface.setResizable(true); 
 rect(0, 0, width, height);
 noLoop();
}