The current way of encoding Undefined is to try to print any utf-8 rune. I believe it would make sense to serialize Undefined as []byte through json.Marshal and let it encode it as base64. That way you could also remove the nullString function if #36 is merged.
The current way of encoding
Undefined
is to try to print any utf-8 rune. I believe it would make sense to serializeUndefined
as []byte through json.Marshal and let it encode it as base64. That way you could also remove thenullString
function if #36 is merged.