src/Builder4/Editor.bjs
[app.Builder.js] / src / Palete / Javascript.vala
index ab217f4..64a73a1 100644 (file)
@@ -125,6 +125,7 @@ namespace Palete {
                 * 
                 */
                public string executeFile(string fname, string call_method, string js_data)
+                               throws JavascriptError
                {
                        string file_data;
                        if (!FileUtils.test (fname, FileTest.EXISTS)) {
@@ -158,7 +159,7 @@ namespace Palete {
                        
                        if (!othis.has_property(ctx,jmethod)) {
                                throw new JavascriptError.MISSING_METHOD ("Plugin: missing method  %s", call_method);
-                               return ;
+                        
                        }
                        
                        var val =  othis.get_property (ctx, jmethod, out exb);