throw if stack readonly