function wrap (prim) {
  var proto = Object.create(prim.prototype);

  var result = function () {
    if (this instanceof result) {