mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-27 05:38:45 +03:00
Compare commits
11 Commits
f9b35451f1
...
3bab404ff1
Author | SHA1 | Date | |
---|---|---|---|
|
3bab404ff1 | ||
|
2d99c323a2 | ||
|
cf0e179263 | ||
|
3dcca0d1d6 | ||
|
b2ed2e91f5 | ||
|
e924173c0f | ||
|
982b7aa14f | ||
|
0377dab4f2 | ||
|
0cef7f0ddb | ||
|
a1e073e444 | ||
|
8b43bae10b |
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -36,6 +36,10 @@ jobs:
|
|||||||
- name: Run microbench
|
- name: Run microbench
|
||||||
run: |
|
run: |
|
||||||
make microbench
|
make microbench
|
||||||
|
- name: Run test262
|
||||||
|
run: |
|
||||||
|
make test2-bootstrap
|
||||||
|
make test2
|
||||||
|
|
||||||
linux-lto:
|
linux-lto:
|
||||||
name: Linux LTO
|
name: Linux LTO
|
||||||
@ -138,6 +142,10 @@ jobs:
|
|||||||
- name: Run built-in tests
|
- name: Run built-in tests
|
||||||
run: |
|
run: |
|
||||||
make test
|
make test
|
||||||
|
- name: Run test262
|
||||||
|
run: |
|
||||||
|
make test2-bootstrap
|
||||||
|
make test2
|
||||||
|
|
||||||
macos-asan:
|
macos-asan:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@ -172,7 +180,12 @@ jobs:
|
|||||||
- name: Build + test
|
- name: Build + test
|
||||||
uses: vmactions/freebsd-vm@v1
|
uses: vmactions/freebsd-vm@v1
|
||||||
with:
|
with:
|
||||||
|
# This VM has a tendency to get stuck in the "VM is booting" cycle
|
||||||
|
# for quite a while, so set a shorter timeout
|
||||||
|
timeout-minutes: 15
|
||||||
usesh: true
|
usesh: true
|
||||||
|
copyback: false
|
||||||
|
mem: 16384
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y gmake
|
pkg install -y gmake
|
||||||
run: |
|
run: |
|
||||||
@ -202,6 +215,10 @@ jobs:
|
|||||||
- name: Run built-in tests
|
- name: Run built-in tests
|
||||||
run: |
|
run: |
|
||||||
make CONFIG_COSMO=y test
|
make CONFIG_COSMO=y test
|
||||||
|
- name: Run test262
|
||||||
|
run: |
|
||||||
|
make test2-bootstrap
|
||||||
|
make CONFIG_COSMO=y test2
|
||||||
|
|
||||||
mingw-windows:
|
mingw-windows:
|
||||||
name: MinGW Windows target
|
name: MinGW Windows target
|
||||||
|
13
Makefile
13
Makefile
@ -54,6 +54,10 @@ PREFIX?=/usr/local
|
|||||||
# use UB sanitizer
|
# use UB sanitizer
|
||||||
#CONFIG_UBSAN=y
|
#CONFIG_UBSAN=y
|
||||||
|
|
||||||
|
# TEST262 bootstrap config: commit id and shallow "since" parameter
|
||||||
|
TEST262_COMMIT?=af3d908437b0912513a594e7167f17658e72d88b
|
||||||
|
TEST262_SINCE?=2025-09-14
|
||||||
|
|
||||||
OBJDIR=.obj
|
OBJDIR=.obj
|
||||||
|
|
||||||
ifdef CONFIG_ASAN
|
ifdef CONFIG_ASAN
|
||||||
@ -464,6 +468,15 @@ stats: qjs$(EXE)
|
|||||||
microbench: qjs$(EXE)
|
microbench: qjs$(EXE)
|
||||||
$(WINE) ./qjs$(EXE) --std tests/microbench.js
|
$(WINE) ./qjs$(EXE) --std tests/microbench.js
|
||||||
|
|
||||||
|
ifeq ($(wildcard test262/features.txt),)
|
||||||
|
test2-bootstrap:
|
||||||
|
git clone --single-branch --shallow-since=$(TEST262_SINCE) https://github.com/tc39/test262.git
|
||||||
|
(cd test262 && git checkout -q $(TEST262_COMMIT) && patch -p1 < ../tests/test262.patch && cd ..)
|
||||||
|
else
|
||||||
|
test2-bootstrap:
|
||||||
|
(cd test262 && git fetch && git reset --hard $(TEST262_COMMIT) && patch -p1 < ../tests/test262.patch && cd ..)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(wildcard test262o/tests.txt),)
|
ifeq ($(wildcard test262o/tests.txt),)
|
||||||
test2o test2o-update:
|
test2o test2o-update:
|
||||||
@echo test262o tests not installed
|
@echo test262o tests not installed
|
||||||
|
2
TODO
2
TODO
@ -62,5 +62,5 @@ Optimization ideas:
|
|||||||
Test262o: 0/11262 errors, 463 excluded
|
Test262o: 0/11262 errors, 463 excluded
|
||||||
Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch)
|
Test262o commit: 7da91bceb9ce7613f87db47ddd1292a2dda58b42 (es5-tests branch)
|
||||||
|
|
||||||
Result: 54/79414 errors, 1637 excluded, 6821 skipped
|
Result: 54/80760 errors, 1631 excluded, 6064 skipped
|
||||||
Test262 commit: e7e136756cd67c1ffcf7c09d03aeb8ad5a6cec0c
|
Test262 commit: e7e136756cd67c1ffcf7c09d03aeb8ad5a6cec0c
|
||||||
|
@ -78,6 +78,8 @@ DEF(await, "await")
|
|||||||
/* empty string */
|
/* empty string */
|
||||||
DEF(empty_string, "")
|
DEF(empty_string, "")
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
|
DEF(keys, "keys")
|
||||||
|
DEF(size, "size")
|
||||||
DEF(length, "length")
|
DEF(length, "length")
|
||||||
DEF(fileName, "fileName")
|
DEF(fileName, "fileName")
|
||||||
DEF(lineNumber, "lineNumber")
|
DEF(lineNumber, "lineNumber")
|
||||||
@ -228,6 +230,9 @@ DEF(Map, "Map")
|
|||||||
DEF(Set, "Set") /* Map + 1 */
|
DEF(Set, "Set") /* Map + 1 */
|
||||||
DEF(WeakMap, "WeakMap") /* Map + 2 */
|
DEF(WeakMap, "WeakMap") /* Map + 2 */
|
||||||
DEF(WeakSet, "WeakSet") /* Map + 3 */
|
DEF(WeakSet, "WeakSet") /* Map + 3 */
|
||||||
|
DEF(Iterator, "Iterator")
|
||||||
|
DEF(IteratorHelper, "Iterator Helper")
|
||||||
|
DEF(IteratorWrap, "Iterator Wrap")
|
||||||
DEF(Map_Iterator, "Map Iterator")
|
DEF(Map_Iterator, "Map Iterator")
|
||||||
DEF(Set_Iterator, "Set Iterator")
|
DEF(Set_Iterator, "Set Iterator")
|
||||||
DEF(Array_Iterator, "Array Iterator")
|
DEF(Array_Iterator, "Array Iterator")
|
||||||
|
15
test262.conf
15
test262.conf
@ -116,6 +116,7 @@ for-of
|
|||||||
generators
|
generators
|
||||||
globalThis
|
globalThis
|
||||||
hashbang
|
hashbang
|
||||||
|
immutable-arraybuffer=skip
|
||||||
import-attributes
|
import-attributes
|
||||||
import-defer=skip
|
import-defer=skip
|
||||||
import.meta
|
import.meta
|
||||||
@ -140,7 +141,7 @@ Intl.NumberFormat-v3=skip
|
|||||||
Intl.RelativeTimeFormat=skip
|
Intl.RelativeTimeFormat=skip
|
||||||
Intl.Segmenter=skip
|
Intl.Segmenter=skip
|
||||||
IsHTMLDDA
|
IsHTMLDDA
|
||||||
iterator-helpers=skip
|
iterator-helpers
|
||||||
iterator-sequencing=skip
|
iterator-sequencing=skip
|
||||||
json-modules
|
json-modules
|
||||||
json-parse-with-source=skip
|
json-parse-with-source=skip
|
||||||
@ -183,7 +184,7 @@ RegExp.escape
|
|||||||
resizable-arraybuffer=skip
|
resizable-arraybuffer=skip
|
||||||
rest-parameters
|
rest-parameters
|
||||||
Set
|
Set
|
||||||
set-methods=skip
|
set-methods
|
||||||
ShadowRealm=skip
|
ShadowRealm=skip
|
||||||
SharedArrayBuffer
|
SharedArrayBuffer
|
||||||
source-phase-imports-module-source=skip
|
source-phase-imports-module-source=skip
|
||||||
@ -304,14 +305,10 @@ test262/test/built-ins/String/prototype/split/cstm-split-on-string-primitive.js
|
|||||||
# spec updates it in this case)
|
# spec updates it in this case)
|
||||||
test262/test/staging/sm/Array/frozen-dense-array.js
|
test262/test/staging/sm/Array/frozen-dense-array.js
|
||||||
|
|
||||||
|
# does not match spec
|
||||||
|
test262/test/staging/sm/Iterator/from/wrap-next-not-object-throws.js
|
||||||
|
|
||||||
# not supported
|
# not supported
|
||||||
test262/test/staging/sm/Set/difference.js
|
|
||||||
test262/test/staging/sm/Set/intersection.js
|
|
||||||
test262/test/staging/sm/Set/is-disjoint-from.js
|
|
||||||
test262/test/staging/sm/Set/is-subset-of.js
|
|
||||||
test262/test/staging/sm/Set/is-superset-of.js
|
|
||||||
test262/test/staging/sm/Set/symmetric-difference.js
|
|
||||||
test262/test/staging/sm/Set/union.js
|
|
||||||
test262/test/staging/sm/extensions/censor-strict-caller.js
|
test262/test/staging/sm/extensions/censor-strict-caller.js
|
||||||
test262/test/staging/sm/JSON/parse-with-source.js
|
test262/test/staging/sm/JSON/parse-with-source.js
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ index 9828b15..4a5919d 100644
|
|||||||
+// small: 200,
|
+// small: 200,
|
||||||
+// long: 1000,
|
+// long: 1000,
|
||||||
+// huge: 10000,
|
+// huge: 10000,
|
||||||
+ yield: 20,
|
+ yield: 40,
|
||||||
+ small: 20,
|
+ small: 40,
|
||||||
+ long: 100,
|
+ long: 200,
|
||||||
+ huge: 1000,
|
+ huge: 1000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user