I've come across an old script that uses nlapiGetNewRecord().setFieldValue() but never submits the record. But it still seems to work.
I suspect it works because in the same trigger, there's a standard set field value action that updates a field. I suppose that action takes the same record that the script has modified and saves it?