From 1722758717730ac0838418f142d82ca3cff4ad4b Mon Sep 17 00:00:00 2001 From: bellard <6490144+bellard@users.noreply.github.com> Date: Sun, 6 Sep 2020 19:04:20 +0200 Subject: [PATCH] 2020-04-12 release --- Changelog | 7 + TODO | 4 +- VERSION | 2 +- doc/quickjs.html | 38 +- doc/quickjs.pdf | Bin 164089 -> 163753 bytes doc/quickjs.texi | 29 +- libbf.c | 8 +- quickjs-libc.c | 180 ++++++- quickjs.c | 1197 +++++++++++++++++++++++++++++++------------- quickjs.h | 5 +- run-test262.c | 19 +- test262.conf | 9 +- test262_errors.txt | 10 +- tests/test_std.js | 6 +- 14 files changed, 1114 insertions(+), 400 deletions(-) diff --git a/Changelog b/Changelog index 435b39f..0f447db 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,10 @@ +2020-04-12: + +- added cross realm support +- added AggregateError and Promise.any +- added env, uid and gid options in os.exec() +- misc bug fixes + 2020-03-16: - reworked error handling in std and os libraries: suppressed I/O diff --git a/TODO b/TODO index 2f61338..8cfe0be 100644 --- a/TODO +++ b/TODO @@ -73,6 +73,6 @@ REPL: Test262o: 0/11262 errors, 463 excluded Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch) -Test262: 22/70040 errors, 860 excluded, 581 skipped -test262 commit: 25c9e334d301944537215caba1d7f44319f3e0da +Test262: 28/70829 errors, 877 excluded, 425 skipped +Test262 commit: 4a8e49b3ca7f9f74a4cafe6621ff9ba548ccc353 diff --git a/VERSION b/VERSION index 81b7bb9..69f162a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2020-03-16 +2020-04-12 diff --git a/doc/quickjs.html b/doc/quickjs.html index b5c9287..550d2a6 100644 --- a/doc/quickjs.html +++ b/doc/quickjs.html @@ -72,7 +72,7 @@ ul.no-bullet {list-style: none}
QuickJS is a small and embeddable Javascript engine. It supports the -upcoming ES2020 specification +ES2020 specification 1 including modules, asynchronous generators, proxies and BigInt.
@@ -146,12 +146,12 @@ and operator overloading.The ES2019 specification is almost fully supported including the Annex +
The ES2020 specification is almost fully supported including the Annex B (legacy web compatibility) and the Unicode related features.
The following features are not supported yet:
stdout
stderr
If present, set the handle in the child for stdin, stdout or stderr. -
+ +env
Object. If present, set the process environment from the object + key-value pairs. Otherwise use the same environment as the current + process. +
+uid
Integer. If present, the process uid with setuid
.
+
gid
Integer. If present, the process gid with setgid
.
+
https://www.ecma-international.org/ecma-262/10.0
+https://github.com/tc39/test262
#=jp_pc^qt5^Tcq-JSo9>^B|?Yc|hr49!ZI+67%qf
z&9fO@{7)t6e?oglmbr)X?5um_uojBpkcCo?b=E>iX>TD=+V?!TCc+<)!ovV-*i-rb
zawxlA5BtPkfBx;=c+u6@cV(%?ne;!XAc{wJ9$IiTL|-J~V^%n6bT~R9dv*j;J9q)q
z4v!NX&MO|w5IP_~?T6i9i 1x@1vVwsLfBujAd_=%h-y=*>nt_pc~p*c_=vlm8cjt_;t|Xz~vm@
zz~Ow(G;T(@g?3Ql!r{$Mw>0W?txGEJr>A<4#qnglAID4lGx}aYh?uFgEVZLZ@4L~K
zQ-e16!lQ3>ISyD;`>7J4*R0T?h_jtJ=c*~?Qq_F!9Pn1zYqdoXe wXTl=^$xk{6zI_7fg} 0gN&>Jc|d2VNM#`HfJw>d!zpla!#)R)iy&U`
zkb2=CCdZ~@5{%9@y5p4VQQ=tQ&EpMywP6p_XD%DgHxcv;rQ8y@upzHeIa9l|6w*nH
zpVA%*Tkb-A{Td#q5G5qyTPX@_@ +_itEeb%>o;H1LY$A*YM;&F>mR}@SX
z0I4}Y_PF{noB}$F*p8Er0ttN-z^()<96-gWal!HH0b5U^+|WyoWp&ze?9lgSQ5sR=
zCVuiihq}qPKnQ5PO#m$JUpllv^XXT$aQqxa>A>-a5O56uje?`9%h`Qi?{``@W$UD@
zV8DO6gLMYs6WM_BBR9x~Ge90&+e)AJe8S8k*Hsa#`OrMTLUt476a|p?1>j>au83T6H>3E4$|Cw}itPgxNXE3YZd;
zXZaJ$`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