summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-eval-sources.html
blob: aec86b42c4d4ff40bf9ef504a160cd44b9ac75f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<meta charset=UTF-8>
<script>
/* eslint-disable */
eval("window.foo = function() { console.log('FOO'); }");
eval("window.bar = function() { throw new Error('BAR') };");
eval(`window.baz = function() {
        console.log('BAZ');
        console.trace('TRACE');
     }
     //# sourceURL=my-foo.js`);

foo();
baz();
bar();

</script>