Skip to content

Commit

Permalink
Upgraded to V8 7.3.255.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreburgaud committed Dec 30, 2018
1 parent 7ed9e4b commit ff20856
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 13 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ help:
validate:
ifndef TAG
@echo 'Set environment variable to the V8 tag'
@echo 'Example: export IMAGE_TAG=6.9.99'
@echo 'Example: export IMAGE_TAG=7.3.255'
@false
else
@echo 'IMAGE_TAG=${TAG}'
Expand All @@ -39,4 +39,10 @@ push: validate

deploy: clean build push

github:
git push
git tag -a ${TAG} -m 'Version ${TAG}'
git push origin --tags


.PHONY: help build clean push deploy validate
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,40 @@ d8>

When ECMAScript 4 (ES4) was abandoned in 2008, some of its features were rolled into a project codenamed ECMAScript Harmony. ES6 later renamed ES2015 was the first "ECMAScript Harmony" specification and is also known as "ES6 Harmony". The V8 harmony options enable specific features that may not yet be part of the default engine features.


### Harmony Flags with Version 7.3.255

The following flags are enabled when executing the shell `docker run --rm -it andreburgaud/d8:7.3.255 shell`:


```
--harmony (enable all completed harmony features)
--harmony-shipping (enable all shipped harmony features)
--harmony-class-fields (enable "harmony fields in class literals" (in progress))
--harmony-await-optimization (enable "harmony await taking 1 tick" (in progress))
--harmony-private-methods (enable "harmony private methods in class literals" (in progress))
--harmony-regexp-sequence (enable "RegExp Unicode sequence properties" (in progress))
--harmony-weak-refs (enable "harmony weak references" (in progress))
--harmony-locale (enable "Intl.Locale" (in progress))
--harmony-private-fields (enable "harmony private fields in class literals")
--harmony-numeric-separator (enable "harmony numeric separator between digits")
--harmony-object-from-entries (enable "harmony Object.fromEntries()")
--harmony-intl-segmenter (enable "Intl.Segmenter")
--harmony-namespace-exports (enable "harmony namespace exports (export * as foo from 'bar')")
--harmony-sharedarraybuffer (enable "harmony sharedarraybuffer")
--harmony-import-meta (enable "harmony import.meta property")
--harmony-dynamic-import (enable "harmony dynamic import")
--harmony-array-flat (enable "harmony Array.prototype.{flat,flatMap}")
--harmony-symbol-description (enable "harmony Symbol.prototype.description")
--harmony-global (enable "harmony global")
--harmony-json-stringify (enable "well-formed JSON.stringify")
--harmony-public-fields (enable "harmony public instance fields in class literals")
--harmony-static-fields (enable "harmony static fields in class literals")
--harmony-string-matchall (enable "harmony String.prototype.matchAll")
--harmony-intl-list-format (enable "Intl.ListFormat")
--harmony-intl-relative-time-format (enable "Intl.RelativeTimeFormat")
```

## Help

```
Expand Down
32 changes: 20 additions & 12 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,35 @@ start_d8() {
}

start_d8_shell() {
OPTIONS=(--harmony-array-flat
--harmony-array-prototype-values
--harmony-bigint
OPTIONS=(--harmony
--harmony-shipping
--harmony-class-fields
--harmony-do-expressions
--harmony-dynamic-import
--harmony-function-tostring
--harmony-import-meta
--harmony-await-optimization
--harmony-private-methods
--harmony-regexp-sequence
--harmony-weak-refs
--harmony-locale
--harmony-numeric-separator
--harmony-private-fields
--harmony-public-fields
--harmony-numeric-separator
--harmony-object-from-entries
--harmony-intl-segmenter
--harmony-namespace-exports
--harmony-sharedarraybuffer
--harmony-shipping
--harmony-import-meta
--harmony-dynamic-import
--harmony-array-flat
--harmony-symbol-description
--harmony-global
--harmony-json-stringify
--harmony-public-fields
--harmony-static-fields
--harmony-string-matchall
--harmony-string-trimming)
--harmony-intl-list-format
--harmony-intl-relative-time-format)

echo -e "\e[93mOptions\e[39m: ${OPTIONS[*]} $*"
echo -e "\e[93mUse quit() or Ctrl-D (i.e. EOF) to exit the D8 Shell\e[39m"
bash -c "sleep 0.5; rlwrap --prompt-colour=green --multi-line d8 ${OPTIONS[*]} $*"
bash -c "sleep 0.5; rlwrap --prompt-colour=green d8 ${OPTIONS[*]} $*"
}

if [ "$1" = 'bash' ]; then
Expand Down

0 comments on commit ff20856

Please sign in to comment.