single-evaluation-1.html (739B)
1 <!DOCTYPE html> 2 <title>Single evaluation, 1</title> 3 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 window.log = []; 8 9 const test_load = async_test( 10 "Test that a module is evaluated only once, and that 'this' is " + 11 "undefined (because of strict mode)."); 12 window.addEventListener("load", test_load.step_func_done(ev => { 13 assert_array_equals(log, [undefined, "this-nested"]); 14 })); 15 </script> 16 <script type="module" src="this.js"></script> 17 <script type="module" src="this.js"></script> 18 <script type="module" src="this-nested.js"></script> 19 <script type="module" src="this.js"></script> 20 <script type="module" src="this-nested.js"></script>