Test that ill-founded cyclic dependencies cause ReferenceError during evaluation, which leads to error events on window, and that exceptions are remembered.
Asserts run
Pass
assert_array_equals(["cycle-tdz-access-a", object "ReferenceError: Cannot access 'Y' before initialization", "load", [...], "load", [...], "load"], ["cycle-tdz-access-a", object "ReferenceError: Cannot access 'Y' before initialization", "load", [...], "load", [...], "load"])
at Test.<anonymous> ( /html/semantics/scripting-1/the-script-element/module/evaluation-error-2.html:20:7)
Pass
assert_equals(function "function ReferenceError() { [native code] }", function "function ReferenceError() { [native code] }")
at Test.<anonymous> ( /html/semantics/scripting-1/the-script-element/module/evaluation-error-2.html:22:7)