Commit bd59ca18 authored by Jakob Moser's avatar Jakob Moser
Browse files

Pass [] instead of undefined

Closes #68 (at least, I hope so)
parent ecd1921b
Loading
Loading
Loading
Loading
+1 −1
Changes for static/js/exercises.api.mjs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ class ExerciseExecutionContext {
                    }[typeof param]

                    // !! converts any value to a boolean (not a special operator, just two ! (boolean not) operators in series)
                    const result = !!predicate(latestEntry.output)
                    const result = !!predicate(latestEntry.output || [])

                    await clear()
                    verifyHandler(result)