Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 3 additions & 26 deletions doc/quickjs.texi
Original file line number Diff line number Diff line change
Expand Up @@ -193,30 +193,15 @@ QuickJS archive.

@section Test262 (ECMAScript Test Suite)

A test262 runner is included in the QuickJS archive. The test262 tests
can be installed in the QuickJS source directory with:
A test262 runner is included in the QuickJS archive.

@example
git clone https://github.com/tc39/test262.git test262
cd test262
patch -p1 < ../tests/test262.patch
cd ..
@end example

The patch adds the implementation specific @code{harness} functions
and optimizes the inefficient RegExp character classes and Unicode
property escapes tests (the tests themselves are not modified, only a
slow string initialization function is optimized).
The tests can be run with:

The tests can be run with
@example
make test2
make test262
@end example

The configuration files @code{test262.conf}
(resp. @code{test262o.conf} for the old ES5.1 tests@footnote{The old
ES5.1 tests can be extracted with @code{git clone --single-branch
--branch es5-tests https://github.com/tc39/test262.git test262o}}))
contain the options to run the various tests. Tests can be excluded
based on features or filename.

Expand Down Expand Up @@ -265,14 +250,6 @@ The following features are not supported yet:

ECMA402 (Internationalization API) is not supported.

@subsection Extensions

@itemize

@item The first line of a script beginning with @code{#!} is ignored.

@end itemize

@section Modules

ES6 modules are fully supported. The default name resolution is the
Expand Down
71 changes: 0 additions & 71 deletions tests/test262.patch

This file was deleted.

Loading