| <script src="../../resources/js-test-pre.js"></script> |
| description("This tests if TypeError is thrown or not when we call a constructor as a normal function."); |
| var test_constructors = ["AudioContext", "FormData", "EventSource", "FileReader", "Audio", "Image", "Option", "MessageChannel", "SharedWorker", "WebKitCSSMatrix", "WebKitPoint", "WebSocket", "Worker", "XMLHttpRequest", "XSLTProcessor"]; |
| test_constructors.forEach(function (constructor) { |
| if (eval("window." + constructor)) |
| shouldThrow(constructor + "()"); |
| debug("SKIP " + constructor + " is not implemented."); |
| <script src="../../resources/js-test-post.js"></script> |