Skip to content

jasnell/javascript-in-depth

Repository files navigation

How JavaScript Things Work

Code samples from the book demonstrating JavaScript internals, V8 optimizations, and language quirks.

Table of Contents

Running the Examples

Most examples run with Node.js:

node ch01_hello.js

Examples using V8 intrinsics require the --allow-natives-syntax flag:

node --allow-natives-syntax ch03_smi_optimization.js

Some optimization examples benefit from additional flags:

node --allow-natives-syntax --trace-opt --trace-deopt ch06_optimization_tiers.js
node --allow-natives-syntax --trace-ic ch05_megamorphism.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published