writeValue

fun writeValue(value: Any?): Boolean(source)

Serializes a JavaScript value and adds the serialized representation to the internal buffer.

This throws an error if value cannot be serialized.