{"record":{"id":"4880861e1075b36e","repo":"emberjs/ember.js","slug":"deprecation-updatedmessage-stackstr","errorCode":null,"errorMessage":"DEPRECATION: ${updatedMessage}${stackStr}","messagePattern":"DEPRECATION: (.+?)(.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/@ember/debug/lib/deprecate.ts","lineNumber":156,"sourceCode":"              .replace(/^([^(]+?)([\\n$])/gm, '{anonymous}($1)$2')\n              .replace(/^Object.<anonymous>\\s*\\(([^)]+)\\)/gm, '{anonymous}($1)')\n              .split('\\n');\n            stack.shift();\n          } else {\n            // Firefox\n            stack = error.stack\n              .replace(/(?:\\n@:0)?\\s+$/m, '')\n              .replace(/^\\(/gm, '{anonymous}(')\n              .split('\\n');\n          }\n\n          stackStr = `\\n    ${stack.slice(2).join('\\n    ')}`;\n        }\n      }\n\n      let updatedMessage = formatMessage(message, options);\n\n      console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console\n    } else {\n      next(message, options);\n    }\n  });\n\n  registerHandler(function raiseOnDeprecation(message, options, next) {\n    if (ENV.RAISE_ON_DEPRECATION) {\n      let updatedMessage = formatMessage(message);\n\n      throw new Error(updatedMessage);\n    } else {\n      next(message, options);\n    }\n  });\n\n  missingOptionsDeprecation =\n    'When calling `deprecate` you ' +\n    'must provide an `options` hash as the third parameter.  ' +","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/emberjs/ember.js/blob/26f97246a8bf2e28edf26ac3093da2e86c04ffc5/packages/@ember/debug/lib/deprecate.ts#L138-L174","documentation":"Error \"DEPRECATION: ${updatedMessage}${stackStr}\" thrown in emberjs/ember.js.","triggerScenarios":"Thrown at packages/@ember/debug/lib/deprecate.ts:156 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"26f97246a8bf2e28edf26ac3093da2e86c04ffc5","analyzedAt":"2026-09-01T05:01:28.182Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}