From 7e4ed7c1a9129a1325ab243da5e42066b2f9a10c Mon Sep 17 00:00:00 2001 From: jdalton Date: Sun, 3 May 2015 13:47:40 -0700 Subject: [PATCH] Ensure `baseCreate` works in ExtendScript. --- lodash.src.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index d4f74bd79..2b078feec 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -1975,14 +1975,14 @@ * @returns {Object} Returns the new object. */ var baseCreate = (function() { - function Object() {} + function object() {} return function(prototype) { if (isObject(prototype)) { - Object.prototype = prototype; - var result = new Object; - Object.prototype = null; + object.prototype = prototype; + var result = new object; + object.prototype = null; } - return result || context.Object(); + return result || {}; }; }());