blob: b09de3b2030fd7317f6f636d02f82836704b9c92 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("This test should run without throwing an exception.");
var readerConstructor = new ReadableStream().getReader().constructor;
var stream = new ReadableStream();
stream.getReader = "foo";
shouldBeTrue("new readerConstructor(stream) instanceof readerConstructor");
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>