I believe you're referring to this:
https://blog.cloudflare.com/javascript-native-rpc
(Just dropping the link here for anyone else wondering.)
(I'm the author of that blog post, and also the tech lead for Workers and the former founder of Sandstorm.)