Permalink
Browse files

primMkObj uses actual result of primGetCtor() instead of name primGet…

…Ctor to construct constructor
  • Loading branch information...
1 parent 060cb32 commit f3c07f96c8f46caec831615477c92a41bc3498ce @atzedijkstra atzedijkstra committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 EHC/src/javascript/rts/prim.cjs
@@ -495,7 +495,7 @@ primMkAnonObj = function() { return {} }
// primMkObj :: JSString -> IO (JSPtr c)
primMkObj = function(nm) {
- return new primGetCtor(nm);
+ return new (primGetCtor(nm));
}
// Alias to primMkCtor

0 comments on commit f3c07f9

Please sign in to comment.