make typeof undefined snippet work in-line