On Tue, May 14, 2013 at 1:13 PM, Bert Belder <notifications@github.com> wrote:
>
> In src/string_bytes.cc:
>
> > +  bool is_buffer = Buffer::HasInstance(val);
> > +
> > +  if (is_buffer && (encoding == BUFFER || encoding == BINARY)) {
> > +    return Buffer::Length(val.As<Object>(
> ));
> > +  }
> > +
> > +  Local<String> str = val->ToString();
> > +
> > +  switch (encoding) {
> > +    case BINARY:
> > +    case ASCII:
> > +      data_size = str->Length();
> > +      break;
> > +
> > +    case UTF8:
> > +      if (!(str->MayContainNonAscii())) {
>
> Did it stop working? I think it still works actually.

Sorry, I was referring to master. Hadn't realized this is targeted at v0.10.