<!DOCTYPE html>
<meta name="viewport" content="width=device-width,initial-scale=1">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>

<script>
test(function () {
  assert_throws_js(RangeError, function() {
    new IntersectionObserver(e => {}, {threshold: [1.1]})
  })
}, "IntersectionObserver constructor with { threshold: [1.1] }");

test(function () {
  assert_throws_js(TypeError, function() {
    new IntersectionObserver(e => {}, {threshold: ["f