Skip to content

LebsterFace/LebJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,179 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LebJS

A JavaScript engine written in Java

Demonstration

Common Usage

Run a file

lebjs [file]

Run the tests

lebjs -t [dir]

[dir] defaults to ./tests

Enter the REPL

lebjs

REPL commands

.help                      Display this message
.clear                     Clear the screen
.inspect [expression]      Deep print the result of [expression]

Flags

  • -t, --test - Run tests
  • -v, --verbose - Show stack traces for errors
  • --harness [value] - Test harness. Valid options: ladybird
  • --parse-only - Ignore test failures from parsing
  • --ignore-not-impl - Ignore test failures from unimplemented features
  • --hide-passing - Only output skipped / failing tests (ignored if --no-buffer specified)
  • --no-buffer - Do not buffer test outputs
  • --disable-prompt - Disable the > prompt in the REPL
  • --gif - Enable GIF rendering mode (No error handling, no prompt, print delimiter after execution)

Spec compliance

Obviously, do not use this in production. The engine chooses to deviate from the specification in a number of places. Some of these instances are marked with the @NonCompliant annotation :^)

About

JavaScript engine written in Java

Topics

Resources

License

Stars

Watchers

Forks

Contributors