diff -r -c -N IceJS-0.1.0-origin/cpp/src/slice2js/Gen.cpp IceJS-0.1.0/cpp/src/slice2js/Gen.cpp *** IceJS-0.1.0-origin/cpp/src/slice2js/Gen.cpp 2014-03-13 18:04:32.000000000 +0100 --- IceJS-0.1.0/cpp/src/slice2js/Gen.cpp 2014-06-17 19:42:32.822115935 +0200 *************** *** 835,841 **** // // For an inner module we write // ! // Foo.Bar = global.Foo ? (global.Foo.Bar || {}) : {}; // const string scoped = getLocalScope(p->scoped()); --- 835,841 ---- // // For an inner module we write // ! // Foo.Bar = Foo.Bar || {}; // const string scoped = getLocalScope(p->scoped()); *************** *** 850,857 **** } else { ! _out << nl << scoped << " = global." << getLocalScope(p->scope()) << " ? (global." << scoped ! << " || {}) : {};"; } } return true; --- 850,856 ---- } else { ! _out << nl << scoped << " = " << scoped << " || {};"; } } return true; diff -r -c -N IceJS-0.1.0-origin/js/src/Ice/BasicStream.js IceJS-0.1.0/js/src/Ice/BasicStream.js *** IceJS-0.1.0-origin/js/src/Ice/BasicStream.js 2014-03-13 18:04:32.000000000 +0100 --- IceJS-0.1.0/js/src/Ice/BasicStream.js 2014-06-17 19:43:30.262118408 +0200 *************** *** 2765,2771 **** var obj = null, Class; try { ! var typeId = id.length > 2 ? id.substr(2).replace("::", ".") : ""; /*jshint -W061 */ Class = eval(typeId); /*jshint +W061 */ --- 2765,2771 ---- var obj = null, Class; try { ! var typeId = id.length > 2 ? id.substr(2).replace(/::/g, ".") : ""; /*jshint -W061 */ Class = eval(typeId); /*jshint +W061 */ *************** *** 2863,2869 **** try { ! var typeId = id.length > 2 ? id.substr(2).replace("::", ".") : ""; /*jshint -W061 */ Class = eval(typeId); /*jshint +W061 */ --- 2863,2869 ---- try { ! var typeId = id.length > 2 ? id.substr(2).replace(/::/g, ".") : ""; /*jshint -W061 */ Class = eval(typeId); /*jshint +W061 */ diff -r -c -N IceJS-0.1.0-origin/js/src/Ice/Exception.js IceJS-0.1.0/js/src/Ice/Exception.js *** IceJS-0.1.0-origin/js/src/Ice/Exception.js 2014-03-13 18:04:32.000000000 +0100 --- IceJS-0.1.0/js/src/Ice/Exception.js 2014-06-17 19:44:09.302120093 +0200 *************** *** 62,68 **** if(stack !== undefined) { ! var name = object.ice_name ? object.ice_name().replace("::", ".") : ""; Object.defineProperty(object, "stack", { get: function(){ return stack; --- 62,68 ---- if(stack !== undefined) { ! var name = object.ice_name ? object.ice_name().replace(/::/g, ".") : ""; Object.defineProperty(object, "stack", { get: function(){ return stack;