This Basic code succeeds in release version: Space(-1) In release version, this aborts because of failed assertion. 1. In VBA, this code gives Invalid Procedure Call run-time error (5). We need to do the same in VBASupport mode. 2. We can't do that in non-VBA mode, because there is existing code relying on current behavior. We need to sanitize the passed value instead, so that it reaches the internals, where the "non-negative" preconditions must be met, in a valid state. Code pointer: SbRtl_Space in basic/source/runtime/methods.cxx. The patch must contain unit tests both for non-VBA, and VBA support cases.
(In reply to Mike Kaganski from comment #0) > In release version, this aborts because of failed assertion. A thinko: it was intended to be "In *debug* version, this aborts because of failed assertion"