https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 260166c7aa434d6367910af87f67fdaf51146068 authored by Lukasz Anforowicz on 02 April 2018, 20:04:17 UTC
Tests and docs for the current CORB vs <link rel="preload"> behavior.
Tip revision: 260166c
012.html
<!doctype html>
<title>loop in array in structured clone</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function() {
  var x = [];
  x[0] = x;
  postMessage(x, '*', []);
  onmessage = this.step_func(function(e) {
    assert_equals(e.data, e.data[0]);
    this.done();
  });
});
</script>
back to top