d8 cheatsheet

d8 is V8 developer shell1: a powerful JavaScript interpreter and a convenient tool for developing CLI-based utilities.

Useful documentation for d8 include:

Of particular interest:

New Worker with inlined script

This undocumented syntax2 allows for spawning a Worker and passing the script parameter directly as a string.

Note that d8 does not support the location construct for passing environment variables to a new worker: instead simply set the variables directly in the code of the worker.

Auteur/Autrice

  1. d8 stands for developer the same way i18n stands for internationalization and l10n stands for localization.
  2. Look for the Shell::WorkerNew method in the d8 source.

Publié

dans

,

par

Étiquettes :

Commentaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.