rs");

test(() => {
  // The JS spec (OrdinaryHasInstance) bails out early for non-objects
  // Historically we overrode [[HasInstance]] to throw anyway, but this was removed:
  // https://github.com/heycam/webidl/pull/356
  assert_false(5 instanceof NodeFilter, "5");

  // OrdinaryHasInstance throws a TypeError if the right-hand-side doesn't have a .prototype object,
  // which is the case for callback interfaces.
  assert_throws_js(TypeError, () => {
    (function () { }) instanceof NodeFilter;
  });
  as