Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bc: forbid negative array index (#521)
* Negative array index is being caught when accessing a value (p instruction), but is not caught when assigning a value (P instruction) * Adapt existing guard code from 'p' instruction * For consistency with undefined-function error, replace YYERROR call with "last INSTR" * Only the 2nd-from-top ope_stack element is needed; fetch it with splice instead of pop+push dance for $value
- Loading branch information