Check we have a pointer value.
Generate JS