Implements the WebIDL algorithms for converting to and from JavaScript values