()
| 1103 | |
| 1104 | |
| 1105 | def test_forEach_too_few_args(): |
| 1106 | items = [4, 2, 6, 7] |
| 1107 | try: |
| 1108 | pm.eval("(arr) => {arr.forEach()}")(items) |
| 1109 | assert (False) |
| 1110 | except Exception as e: |
| 1111 | assert str(type(e)) == "<class 'pythonmonkey.SpiderMonkeyError'>" |
| 1112 | assert str(e).__contains__("TypeError: forEach: At least 1 argument required, but only 0 passed") |
| 1113 | |
| 1114 | # map |
| 1115 |
nothing calls this directly
no outgoing calls
no test coverage detected