error("") - i.e. with empty string as argument - does break block execution, but doesn't emit error, and its result is undefined. Trying to assign will not change previous value of variable.
The screenshot attached shows the problem.
If such use will happen inside a function, it will be extremely hard to debug :)