I am using 2.0b8 on Windows 7 64 bit
Note the change from setStroke to stroke and setStrokeWeight to strokeWeight.
Note the change from setStroke to stroke and setStrokeWeight to strokeWeight.