B2G/gecko/dom/workers/test/fileReaderSyncErrors_worker.js
/**
 * Tries to write to property.
 */
Tries to write to property.
Tries to write to property .
function writeProperty(file, property) {
  try {
    var oldValue = file[property];
    file[property] = -1;
    is(false, true, "Should have thrown an exception setting a read only property.");
  } catch (ex) {
    is(true, true, "Should have thrown an exception setting a read only property.");
  }
}
function writeProperty ( file , property ) { try { var oldValue = file [ property ] ; file [ property ] = - 1 ; is ( false , true , "Should have thrown an exception setting a read only property." ) ; } catch ( ex ) { is ( true , true , "Should have thrown an exception setting a read only property." ) ; } }
Tries to write to property.
Tries to write to property .