Why would this simple code cause a problem in Construct 2.
My guess would be that it doesn't work that way.
Develop games in your browser. Powerful, performant & highly capable.
If you put nothing, Construct does nothing.
Simple as that.