{"record":{"id":"7448aa5a17138262","repo":"OrchardCMS/OrchardCore","slug":"msg-jquery-slim","errorCode":null,"errorMessage":"msg","messagePattern":"msg","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Vendor/jquery-3.4.1/jquery.slim.js","lineNumber":321,"sourceCode":"\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;","sourceCodeStart":303,"sourceCodeEnd":339,"githubUrl":"https://github.com/OrchardCMS/OrchardCore/blob/4306c0717fe573f6fca1b4955909ddab6a192807/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Vendor/jquery-3.4.1/jquery.slim.js#L303-L339","documentation":"jQuery.error in the slim build: it throws new Error(msg). All internal error reporting in jquery.slim.js routes through this single throw site, so any invalid usage surfaced by jQuery internals appears here with a descriptive msg.","triggerScenarios":"$.error('...') called directly by app/plugin code; internal slim-jQuery validation failures (bad selectors, malformed arguments) that delegate to jQuery.error.","commonSituations":"Plugins misusing jQuery APIs; invalid selector or option values passed at runtime; debugging stack traces that end at this throw site.","solutions":["Use the msg and stack to locate the invalid call","Fix the argument (selector, data type, options) at the call site","Replace $.error calls with explicit throw in your own code","Upgrade from jQuery 3.4.1 slim to a maintained 3.7.x build"],"exampleFix":"// before\n$.error('unsupported operation');\n// after\nthrow new Error('unsupported operation');","handlingStrategy":"try-catch","validationCode":"null","typeGuard":"null","tryCatchPattern":"try { $(sel).trigger('x'); } catch (e) { if (e instanceof Error) { console.error('slim jQuery error:', e.message); } }","preventionTips":["Validate arguments before jQuery API calls","Check plugin compatibility with the slim build (no ajax/effects)","Use e.stack to locate the real caller","Upgrade from 3.4.1 to a maintained jQuery release"],"tags":["javascript","jquery","error-api","slim"],"backgroundTag":"invalid-argument","analyzedSha":"4306c0717fe573f6fca1b4955909ddab6a192807","analyzedAt":"2026-09-13T17:41:05.024Z","contentChangedAt":"2026-09-13T17:41:05.024Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}