Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassEvalError thrown if the callback of the default policy throws an error (eval).
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => eval("1+2")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor-untrusted-arguments-and-default-policy-throwing.html:15:5)
PassEvalError thrown if the callback of the default policy throws an error (new Function).
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new Function("return 3;")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor-untrusted-arguments-and-default-policy-throwing.html:18:5)