Not a bad idea.


On Wed, Aug 28, 2013 at 1:53 PM, Marc Fisher <notifications@github.com>wrote:

> In lib/src/common.dart:
>
> > @@ -230,3 +230,10 @@ class WebDriverError {
> >      return '$statusCode $type: $message $results\n$details';
> >    }
> >  }
> > +
> > +Future<String> _toStringEscapeNUL(Stream<List<int>> source) {
> > +  var regexp = new RegExp('\u{0}*\$');
>
> Does the RegExp factory cache reg exp objects? If not, it might be worth
> it to make this a constant outside of this method.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dart-lang/webdriver/pull/21/files#r6046113>
> .
>