Error when loading a library from an EntityScript


#1

When i try to load another js file via Script.include, i get the following message :

[WARNING] [06/04 14:56:04] QObject::connect: Cannot queue arguments of type ‘QMap<QUrl,QString>’ (Make sure ‘QMap<QUrl,QString>’ is registered using qRegisterMetaType().)

Even this is just a Warning Message, the loaded script fails to start. I’ve created a very simple test to verify this :

    test1 = function() {
	    var that = {};
	    return that;
    }

and the calling script :

(function() {
    Script.include("test1.js");
    t = new test1();
    print("test finished");
})

results in the log to :

[DEBUG] [06/04 15:08:32] Downloading script at “http://phineasclick.github.io/test_m.js?3
[DEBUG] [06/04 15:08:32] Done downloading script at: “http://phineasclick.github.io/test_m.js?3
[DEBUG] [06/04 15:08:32] Found script in cache: “http://phineasclick.github.io/test_m.js?3
[DEBUG] [06/04 15:08:32] Downloading file at QUrl( “http://phineasclick.github.io/test1.js” )
[WARNING] [06/04 15:08:32] QObject::connect: Cannot queue arguments of type ‘QMap<QUrl,QString>’ (Make sure ‘QMap<QUrl,QString>’ is registered using qRegisterMetaType().)
[DEBUG] [06/04 15:08:33] Uncaught exception at ( “Entities” ) line 3 : “ReferenceError: Can’t find variable: test1”

Does anyone have an Idea what going wrong?

thanks & regards

Phineas