Skip to content

oxc-project/acorn-test262

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acorn output for test262

Acorn is run with:

ecmaVersion: "latest",
sourceType: module ? "module" : "script",
preserveParens: true,
allowHashBang: true,
allowReturnOutsideFunction: true,
allowAwaitOutsideFunction: true,

Negative errors are filtered out. Files producing the following errors are ignored:

  • Invalid regular expression flag.
  • Unexpected token (possibility a stage 3 feature).
  • Cannot parse YAML from Test262 fixture comment.

RegExps and BigInts are serialized as null, because JSON does not support BigInts, and serializes RegExps as {} (not useful).

Literal nodes which are BigInts have a bigint field containing the BigInt's value as a string. Similarly, Literal nodes which are RegExps have a regex field containing pattern and flags. So in both cases, the BigInt / RegExp can be reconstructed from this extra data.

Maintainance

# Change the commit sha in the init command, then:
pnpm run init
pnpm run start
git commit -m "update snapshots"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •