Docker image for the Google JavaScript engine V8
4.2K
Usage
$ docker run --rm -it andreburgaud/d8 shell
Options: --harmony --harmony-shipping --harmony-top-level-await --harmony-intl-dateformat-day-period --harmony-sharedarraybuffer --harmony-atomics --harmony-weak-refs --harmony-string-replaceall --harmony-logical-assignment --harmony-atomics-waitasync --harmony-relative-indexing-methods
Use quit() or Ctrl-D (i.e. EOF) to exit the D8 Shell
V8 version 9.0.0 (candidate)
d8> print("Hello D8");
Hello D8
undefined
d8> typeof 3000n:
"bigint"
d8> let a = [1, 2, [3, 4, 5]];
undefined
d8> a
[1, 2, [3, 4, 5]]
d8> a.flat()
[1, 2, 3, 4, 5]
d8> function add(x, y) { \
return x + y; \
}
undefined
d8> add(2_000, 5);
2005
d8> add(2_000n, 5n);
2005n
Content type
Image
Digest
Size
81.3 MB
Last updated
over 5 years ago
docker pull andreburgaud/d8