505dace719
This patch checks whether the source code is a valid UTF-8 string before evaluating it in prompt mode. Also fixes #2476. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu