Error reporting

On calling toString method I gets

CompileError: Error loading c:/_host/project_name/src/services/listenToResize.js: size is read-only (17:8)

Logging error shows me this

{ [CompileError: Error loading c:/_host/project_name/src/services/listenToResize.js: size is read-only (17:8)]
  name: 'CompileError',
  message: 'Error loading c:/_host/project_name/src/services/listenToResize.js: size is read-only (17:8)',
  stack: 'Error\n    at AssignmentExpression.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:1118:13)\n    at Node.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:857:12)\n    at c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3380:56\n    at Array.forEach (native)\n    at BlockStatement.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3380:15)\n    at ArrowFunctionExpression.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:857:12)\n    at ArrowFunctionExpression.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:1000:31)\n    at VariableDeclarator.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:857:12)\n    at VariableDeclarator.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3159:31)\n    at c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3059:76\n    at Array.forEach (native)\n    at VariableDeclaration.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3059:23)\n    at c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3380:56\n    at Array.forEach (native)\n    at BlockStatement.initialise (c:\\_host\\project_name\\node_modules\\rollup-plugin-buble\\node_modules\\buble\\dist\\buble.umd.js:3380:15)',  loc: { line: 17, column: 8, char: 16 },  snippet: '13 :         }\r\n14 :         if (size.width === newSize.width && size.height === newSize.height) {\r\n15 :             return;\r\n16 :         }\r\n17 :         size = newSize;\r\n             ^^^^',  id: 'c:/_host/project_name/src/services/listenToResize.js' }

Can we add snippet log in toString method?