diff --git a/.eslintrc b/.eslintrc index d6393c3fe..2449fd815 100644 --- a/.eslintrc +++ b/.eslintrc @@ -23,7 +23,8 @@ }, "globals": { - "Promise": true + "Promise": true, + "Symbol": true, // ^^Available since Node v4 }, diff --git a/lib/hooks/helpers/index.js b/lib/hooks/helpers/index.js index 066d36aff..da72c5b65 100644 --- a/lib/hooks/helpers/index.js +++ b/lib/hooks/helpers/index.js @@ -148,7 +148,7 @@ module.exports = function(sails) { // > NOTE: This is NOT `sails.config.helpers`-- this is `sails.helpers`! // > (As for sails.config.helpers, it's set automatically based on our `defaults above) sails.helpers = {}; - Object.defineProperty(sails.helpers, 'inspect', { + Object.defineProperty(sails.helpers, Symbol.for('nodejs.util.inspect.custom'), { enumerable: false, configurable: false, writable: true,