From 0e4162af2a7f06c8c1b4123adeaeaef2081a10dc Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Thu, 25 Jul 2013 22:39:16 -0700 Subject: [PATCH] Fix the constructor --- lib/types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/types.js b/lib/types.js index 4eee88ac..aea86d02 100644 --- a/lib/types.js +++ b/lib/types.js @@ -17,7 +17,7 @@ module.exports = function (Types) { return this.value; }; - Types.JSON = function JSON() { + Types.JSON = function JSON(value) { if (!(this instanceof JSON)) { return new JSON(value); } @@ -27,7 +27,7 @@ module.exports = function (Types) { return this.value; }; - Types.Any = function Any() { + Types.Any = function Any(value) { if (!(this instanceof Any)) { return new Any(value); }