on master help sign in
javascript: remove name from constructors
commitf907f8a477f67c57ae07ee5e58018fd061931f4a authorraichoo <raichoo@googlemail.com> dateThu 24 Jan 2013, 21:22 (14 years ago) parent3fdf1a0
2 files changed+2−4
js/Runtime.js+1−2 src/IRTS/CodegenJavaScript.hs+1−2
js/Runtime.js+1−2
@@ -22,9 +22,8 @@ var __IDR__;
2222 __IDR__.Tailcall = function(f) { this.f = f };
2323
2424 /** @constructor */
25− __IDR__.Con = function(i,name,vars) {
25+ __IDR__.Con = function(i,vars) {
2626 this.i = i;
27− this.name = name;
2827 this.vars = vars;
2928 };
3029
src/IRTS/CodegenJavaScript.hs+1−2
@@ -421,8 +421,7 @@ translateExpression modname (SCase var cases) =
421421translateExpression _ (SCon i name vars) =
422422 concat [ "new __IDR__.Con("
423423 , show i
424− , ","
425− , '\'' : translateQualifiedName name ++ "\',["
424+ , ",["
426425 , intercalate "," $ map translateVariableName vars
427426 , "])"
428427 ]