tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Blob-newobject.any.js (405B)


      1 // META: title=Blob methods return new objects ([NewObject])
      2 // META: global=window,worker
      3 'use strict';
      4 
      5 ['stream', 'text', 'arrayBuffer', 'bytes'].forEach(method => {
      6  test(() => {
      7    const blob = new Blob(['PASS']);
      8    const a = blob[method]();
      9    const b = blob[method]();
     10    assert_not_equals(a, b, `Blob.${method}() must return a new object`);
     11  }, `Blob.${method}() returns [NewObject]`);
     12 });