[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-721620-105":59,"doc-detail-721620-en":130,"doc-similar-721620":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","discovering-bug-patterns-in-javascript","Discovering Bug Patterns in JavaScript","","JavaScript’s widespread use is hindered by limited IDE support that warns developers about potential bugs. Many current bug-finding tools rely on best-practice reading or intuition, leaving uncertainty about which bugs occur frequently and deserve priority fixes. The work proposes BugAID, a semi-automatic technique using unsupervised machine learning over AST-differencing distilled fix changes. A study of 105K commits across 134 server-side projects identifies 219 fix-change types and 13 pervasive bug patterns.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/discovering-bug-patterns-in-javascript/721620/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/discovering-bug-patterns-in-javascript/721620.png","ImageObject",300,407,{"name":92,"@type":93},"Jiven","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-24","2026-11-19",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address in JavaScript bug detection?","Question",{"text":112,"@type":113},"JavaScript lacks proper warning support in IDEs for potential bugs, and existing bug-finding tools often cover patterns found through best practices or intuition rather than evidence of frequent real-world issues.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does BugAID discover prevalent bug patterns?",{"text":117,"@type":113},"BugAID mines version control repositories and groups bug instances using feature vectors built from language-construct changes extracted via AST differencing of bug fixes.",{"name":119,"@type":110,"acceptedAnswer":120},"What scale and results does the study report?",{"text":121,"@type":113},"The study analyzes 105,133 commits from 134 JavaScript projects, discovers 219 common bug-fixing change types, and discusses 13 pervasive bug patterns across multiple projects.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},721620,1795060960,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},1099513958607,"https://ap-avatar.wpscdn.com/avatar/100002390cf8733938c?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778829742770036399","✓ Artifact evaluated by FSE  \nDiscovering Bug Patterns in JavaScript  \nQuinn Hanam  \nUniversity of British Columbia Vancouver, BC, Canada  \n[qhanam@ece.ubc.ca](qhanam@ece.ubc.ca)  \n􀀃  \nFernando S. de M. Brito Univ. Federal da Paraíba João Pessoa, PB, Brazil  \n[fernando@lavid.ufpb.br](fernando@lavid.ufpb.br)  \nAli Mesbah  \nUniversity of British Columbia Vancouver, BC, Canada  \n[amesbah@ece.ubc.ca](amesbah@ece.ubc.ca)  \nABSTRACT  \nJavaScript has become the most popular language used by developers for client and server side programming. The language, however, still lacks proper support in the form of warnings about potential bugs in the code. Most bug 􀀌nding tools in use today cover bug patterns that are discovered by reading best practices or through developer intuition and anecdotal observation. As such, it is still unclear which bugs happen frequently in practice and which are important for developers to be 􀀌xed. We propose a novel semi-automatic technique, called BugAID, for discovering the most prevalent and detectable bug patterns. BugAID is based on unsupervised machine learning using languageconstruct-based changes distilled from AST di􀀋erencing of bug 􀀌xes in the code. We present a large-scale study of common bug patterns by mining 105K commits from 134 server-side JavaScript projects. We discover 219 bug 􀀌xing change types and discuss 13 pervasive bug patterns that occur across multiple projects and can likely be prevented with better tool support. Our 􀀌ndings are useful for improving tools and techniques to prevent common bugs in JavaScript, guiding tool integration for IDEs, and making developers aware of common mistakes involved with programming in JavaScript.  \nCCS Concepts  \n•Software and its engineering ! Software testing and debugging; Empirical software validation;  \nKeywords  \nBug patterns, JavaScript, Node.js, data mining, static analysis  \n􀀃 This author was a visiting student at the University of  \nBritish Columbia, when this work was done.  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for proﬁt or commercial advantage and that copies bear this notice and the full citation on the ﬁrst page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior speciﬁc permission and/or a fee. Request permissions [from Permissions@acm.org](from Permissions@acm.org).  \nFSE'16, November 13–18, 2016, Seattle, WA, USA  \n􀀍c 2016 ACM. 978-1-4503-4218-6/16/11...$15.00 [http://dx.doi.org/10.1145/2950290.2950308](http://dx.doi.org/10.1145/2950290.2950308)  \n1. INTRODUCTION  \nA recent survey of more than 26K developers conducted by Stack Over􀀍ow found that JavaScript is the most-used programming language [54] . JavaScript is the language used inside the browser but it is also becoming popular as a desktop and server-side language thanks to the Node.js 1 platform.  \nDespite this, JavaScript currently lacks IDE support [12] in the form of analysis alerts that warn the developer about potential bugs in their code. Such alerts are common to compiled, strongly typed languages such as Java in the form of compilers and bug 􀀌nding tools like FindBugs [13] . The lack of tool support for JavaScript is in part due to several challenges that are unique to JavaScript including, but not limited to weak typing [22, 49], dynamic 􀀌eld access and creation [51], higher order functions, dynamic code evaluation and execution [50], and event-driven and asynchronous 􀀍ow of control [5, 16] .  \nRecent research advances have made the use of static analysis on JavaScript more practical [12, 21, 25, 32, 40, 47, 53], while other techniques mitigate the analysis challenges by using a dynamic or hybrid approach [4, 17, 34] . As toolsmiths begin to develop the 􀀌rst bug 􀀌nding tools fo","cbCaiatLJ9Iq01M3","https://ap.wps.com/l/cbCaiatLJ9Iq01M3","pdf",1614823,13,"English","# Abstract\n# Introduction","[{\"question\":\"What problem does the paper address in JavaScript bug detection?\",\"answer\":\"JavaScript lacks proper warning support in IDEs for potential bugs, and existing bug-finding tools often cover patterns found through best practices or intuition rather than evidence of frequent real-world issues.\"},{\"question\":\"How does BugAID discover prevalent bug patterns?\",\"answer\":\"BugAID mines version control repositories and groups bug instances using feature vectors built from language-construct changes extracted via AST differencing of bug fixes.\"},{\"question\":\"What scale and results does the study report?\",\"answer\":\"The study analyzes 105,133 commits from 134 JavaScript projects, discovers 219 common bug-fixing change types, and discusses 13 pervasive bug patterns across multiple projects.\"}]","Discovering Bug Patterns in JavaScript | PDF",33,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/6a959a69ab684ece992cff7e14893614.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/7bfa7fa4d643fe0b742b9694d186e117.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/8efacdd6acaca6114e4b9eb34380eaae.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/96f79d902fa7d325cee47626b12c3415.webp",980,1268,{"list":163,"token":66},[164,170,177,184,191,198,205,212,219,226],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":81,"category_name":40,"create_tm":169},692470,"Fixing 7,400 Bugs for 1$ - Cheap Crash-Site Program Repair","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003869150/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=a5aNVsY2Ji1LTDqPx%2FHowFqNsMM%3D","fixing-7400-bugs-for-1-cheap-crash-site-program-repair",1794209797,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":40,"create_tm":176},119650,"SemetonBug - Next-Generation Machine Learning-Powered Code Analyzer for Precision Bug Detection and Dynamic Error Localization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835058547/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=eLS6ygsWvG5uuRbZuIQ%2Bikvgj4k%3D","semetonbug-next-generation-machine-learning-powered-code-analyzer-for-precision-bug-detection-and-dynamic-error-localization",23,1785725468,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":40,"create_tm":183},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=f4QAiNTBP7aGekNlrMu5y3e65rw%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":40,"create_tm":190},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=h0xyLdpc4dNXmCLarEKJu1O5D7s%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6933,1776136851,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":40,"create_tm":197},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=Z7VKbWU6iN9Ll77WG0WeQzQqLtg%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5866,1788211707,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=RfdskCmAr55OSgOANWdF675R6yw%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":40,"create_tm":211},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=%2Bo1jRhoJI%2BKWBqxhL5ztOPnAUMc%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":40,"create_tm":218},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=3D90gRtuTO7IJWUdwOuUVWmAV%2Fo%3D","letter-of-intent-sample-for-school",1059,1776135210,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":40,"create_tm":225},129209,"Laboratory Manual for Principles of General Chemistry - J. A. Beran - 11th Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840760175/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=%2BZfhh00M3tZe9jPkrD8sOJI6jkE%3D","laboratory-manual-for-principles-of-general-chemistry-j-a-beran-11th-edition",886,1786011673,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":231,"category_name":40,"create_tm":232},117724,"The Trading Edge - Vivek Bajaj","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834707110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111219&Signature=fvgvsVSdKM60K6Pligvf0g5Siis%3D","the-trading-edge-vivek-bajaj",874,1785678693]