{"record":{"id":"95670fd81e2557cb","repo":"OrchardCMS/OrchardCore","slug":"msg-jquery","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.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.js#L303-L339","documentation":"Identical to jQuery.error in core.js: jQuery.error(msg) throws new Error(msg). This is the throw site inside the full jquery.js bundle at line 321; all internal jQuery failures funnel through it with a specific message.","triggerScenarios":"Any internal jQuery error path (invalid selectors via Sizzle, bad data types to jQuery APIs) or direct calls to $.error('...') by plugins or application code.","commonSituations":"Third-party plugins calling $.error for precondition checks; malformed selector strings; using jQuery APIs with wrong argument types.","solutions":["Inspect the error message and stack to find the originating call","Correct the invalid argument (usually a selector or option object) at the call site","Update the plugin that calls $.error improperly","Consider migrating to jQuery 3.7.x for current behavior and fixes"],"exampleFix":"// before\n$('#[invalid-selector'); // triggers jQuery.error via Sizzle\n// after\n$('#valid-id');","handlingStrategy":"try-catch","validationCode":"null","typeGuard":"null","tryCatchPattern":"try { /* jQuery API call */ } catch (e) { if (e instanceof Error) { console.error('jQuery error:', e.message); } }","preventionTips":["Validate selectors and option objects before jQuery calls","Keep plugins updated to match the jQuery version in use","Inspect e.stack to find the true call site above the throw","Track vendor bundle versions in source control"],"tags":["javascript","jquery","error-api"],"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"}