Lune

FSE2022Top-tier venue

Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis

Jihyeok Park, Seungmin An, Sukyoung Ryu

Abstract

JavaScript is one of the most dominant programming languages. However, despite its popularity, it is a challenging task to correctly understand the behaviors of JavaScript programs because of their highly dynamic nature. Researchers have developed various static analyzers that strive to conform to ECMA-262, the standard specification of JavaScript. Unfortunately, all the existing JavaScript static analyzers require manual updates for new language features. This problem has become more critical since 2015 because the JavaScript language itself rapidly evolves with a yearly release cadence and open development process.

In this paper, we present JSAVER, the first tool that automatically derives JavaScript static analyzers from language specifications. The main idea of our approach is to extract a definitional interpreter from ECMA-262 and perform a meta-level static analysis with the extracted interpreter. A meta-level static analysis is a novel technique that indirectly analyzes programs by analyzing a definitional interpreter with the programs. We also describe how to indirectly configure abstract domains and analysis sensitivities in a meta-level static analysis. For evaluation, we derived a static analyzer from the latest ECMA-262 (ES12, 2021) using JSAVER. The derived analyzer soundly analyzed all applicable 18,556 official conformance tests with 99.0% of precision in 590 ms on average. In addition, we demonstrate the configurability and adaptability of JSAVER with several case studies.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Bringing the WebAssembly Standard up to Speed with SpecTec cites JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Bringing the WebAssembly Standard up to Speed with SpecTec cites JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • Bringing the WebAssembly Standard up to Speed with SpecTec cites JSTAR: JavaScript Specification Type Analyzer using Refinement
  • Detecting Inconsistencies in Arm CCA's Formally Verified Specification cites JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • Detecting Inconsistencies in Arm CCA's Formally Verified Specification cites JSTAR: JavaScript Specification Type Analyzer using Refinement
  • JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification cites JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations cites JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations cites JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations cites JSTAR: JavaScript Specification Type Analyzer using Refinement
  • P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification cites JISET: JavaScript IR-based Semantics Extraction Toolchain
  • P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification cites JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification cites JSTAR: JavaScript Specification Type Analyzer using Refinement
  • JSTAR: JavaScript Specification Type Analyzer using Refinement cites JISET: JavaScript IR-based Semantics Extraction Toolchain
  • JSTAR: JavaScript Specification Type Analyzer using Refinement cites JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Bringing the WebAssembly Standard up to Speed with SpecTecDongjun Youn, Wonho Shin, Jaehyun Lee, Sukyoung Ryu et al.PLDI 2024 · 30 citations
  2. Feature-Sensitive Coverage for Conformance Testing of Programming Language ImplementationsJihyeok Park, Dongjun Youn, Kanguk Lee, Sukyoung RyuPLDI 2023 · 3 citations
  3. The Incredible Shrinking Context... in a Decompiler Near YouSifis Lagouvardos, Yannis Bollanos, Neville Grech, Yannis SmaragdakisISSTA 2025 · 1 citation
  4. Detecting Inconsistencies in Arm CCA's Formally Verified SpecificationChangho Choi, Xiang Cheng, Bokdeuk Jeong, Taesoo KimASPLOS 2026
  5. P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 SpecificationJaehyun Lee, Seokhun Jeong, Sehyuk Ahn, Haechan Kwon et al.OOPSLA 2026

Builds on4

  1. JEST: N+1 -version Differential Testing of Both JavaScript Engines and SpecificationJihyeok Park, Seungmin An, Dongjun Youn, Gyeongwon Kim et al.ICSE 2021 · 24 citations
  2. JISET: JavaScript IR-based Semantics Extraction ToolchainJihyeok Park, Jihee Park, Seungmin An, Sukyoung RyuASE 2020 · 20 citations
  3. Accelerating JavaScript static analysis via dynamic shortcutsJoonyoung Park, Jihyeok Park, Dongjun Youn, Sukyoung RyuFSE 2021 · 15 citations
  4. JSTAR: JavaScript Specification Type Analyzer using RefinementJihyeok Park, Seungmin An, Wonho Shin, Yusung Sim et al.ASE 2021 · 7 citations

Related papers

  1. Reducing Static Analysis Unsoundness with Approximate InterpretationMathias Rud Laursen, Wenyuan Xu, Anders MøllerPLDI 2024 · 5 citations
  2. IRIDIUM: A Framework for Statically Optimizing JavaScript ProgramsMeetesh Kalpesh Mehta, Anirudh Garg, Aneeket Yadav, Manas ThakurOOPSLA 2026
  3. Semantic Patches for Adaptation of JavaScript Programs to Evolving LibrariesBenjamin Barslev Nielsen, Martin Toldam Torp, Anders MøllerICSE 2021 · 17 citations
  4. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 citations
  5. JavaScript Pointer Analysis with Adaptive Heap AbstractionWenyuan Xu, Anders MøllerFSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines