An Operational Semantics for JavaScript

  • Authors:
  • Sergio Maffeis;John C. Mitchell;Ankur Taly

  • Affiliations:
  • Department of Computing, Imperial College London,;Department of Computer Science, Stanford University,;Department of Computer Science, Stanford University,

  • Venue:
  • APLAS '08 Proceedings of the 6th Asian Symposium on Programming Languages and Systems
  • Year:
  • 2008

Quantified Score

Hi-index 0.02

Visualization

Abstract

We define a small-step operational semantics for the ECMAScript standard language corresponding to JavaScript, as a basis for analyzing security properties of web applications and mashups. The semantics is based on the language standard and a number of experiments with different implementations and browsers. Some basic properties of the semantics are proved, including a soundness theorem and a characterization of the reachable portion of the heap.