Files
codeql/javascript/ql/test/library-tests/Flow/globals.html
2018-08-02 17:53:23 +01:00

29 lines
516 B
HTML

<html>
<head>
<title>Test</title>
<script>
var x = 0;
someGlobal = true;
(function() {
var x1 = x;
var x2 = someGlobal;
})();
</script>
<script>
var x = "hi";
</script>
<script>
(function() {
var x1 = x;
var x2 = someGlobal;
})();
</script>
<script>
function x() {}
</script>
</head>
<body>
<button onclick="(function() { var x1 = x; var x2 = someGlobal; })()">b</button>
</body>
</html>