If you have two files called Abc.js in two different directories, the error message for syntax error (and others)
does not distinguish between them. The fix is to send the fully qualified path to the method.
g_free (contents);
file_contents = JSStringCreateWithUTF8CString (walk);
- file_name = JSStringCreateWithUTF8CString (file);
+ file_name = JSStringCreateWithUTF8CString (canonical);
nctx = JSGlobalContextCreateInGroup (context_group, 0);
seed_prepare_global_context (nctx);