blob: c92dda4567c5a0399cc0b6eb84d71c523b3c7ee8 [file] [log] [blame]
// META: script=constants.sub.js
// META: variant=
// META: variant=?wss
// META: variant=?wpt_flags=h2
test(function() {
var ws = new WebSocket(SCHEME_DOMAIN_PORT + "/" + __PATH,
"echo", "Stray argument")
assert_true(ws instanceof WebSocket, "Expected a WebSocket instance.")
}, "Calling the WebSocket constructor with too many arguments should not throw.")