@Sacha which pins have you connected the power supply to?
It'd be worth checking the voltage coming out of it, and ideally looking at it with an oscilloscope to check that it's stable. But as @jonreid says, running that code would be a huge help, as it might be it's getting confused about the clock source.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Sacha which pins have you connected the power supply to?
It'd be worth checking the voltage coming out of it, and ideally looking at it with an oscilloscope to check that it's stable. But as @jonreid says, running that code would be a huge help, as it might be it's getting confused about the clock source.