Use fully qualified paths when sending to Evaluate script, so error messages are...
authorAlan Knowles <alan@alanfast.akbkhome.com>
Tue, 9 Mar 2010 09:15:36 +0000 (17:15 +0800)
committerAlan Knowles <alan@alanfast.akbkhome.com>
Tue, 9 Mar 2010 09:15:36 +0000 (17:15 +0800)
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.

libseed/seed-importer.c

index 1f51838..f3b7317 100644 (file)
@@ -674,7 +674,7 @@ seed_importer_handle_file (JSContextRef ctx,
   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);