dart js patch for writeCapture error on local machines