It appears that calling .valueOf() on an objectified primitive's prototype should return a value after all. This matches what other engines are doing.