[[bench]]
harness = false
name = "bigint_bench"
path = "benches/bigint_bench.rs"
[[bench]]
harness = false
name = "promise_benchmarks"
path = "benches/promise_benchmarks.rs"
[dependencies.chrono]
features = ["serde"]
version = "0.4.42"
[dependencies.indexmap]
version = "2.12.1"
[dependencies.log]
version = "0.4.29"
[dependencies.num-bigint]
version = "0.4.6"
[dependencies.num-traits]
version = "0.2.19"
[dependencies.regress]
features = ["utf16"]
version = "0.10"
[dependencies.serde_json]
version = "1.0.145"
[dependencies.thiserror]
version = "2.0.17"
[dev-dependencies.clap]
features = ["derive", "cargo"]
version = "4.5.53"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.8.0"
[dev-dependencies.ctor]
version = "0.6.3"
[dev-dependencies.env_logger]
version = "0.11.8"
[dev-dependencies.rustyline]
version = "17.0.2"
[[example]]
name = "js"
path = "examples/js.rs"
[lib]
name = "javascript"
path = "src/lib.rs"
[package]
authors = ["ssrlive"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["development-tools", "parsing"]
description = "A JavaScript engine implementation in Rust"
documentation = "https://docs.rs/javascript"
edition = "2024"
homepage = "https://crates.io/crates/javascript"
keywords = ["javascript", "engine", "interpreter", "runtime"]
license = "MIT"
name = "javascript"
readme = "README.md"
repository = "https://github.com/ssrlive/javascript"
version = "0.1.13"
[target."cfg(unix)".dependencies.libc]
version = "0.2.178"
[target."cfg(windows)".dependencies.windows-sys]
features = ["Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp", "Win32_Foundation"]
version = "0.61.2"
[[test]]
name = "accessor_tests"
path = "tests/accessor_tests.rs"
[[test]]
name = "array_literals"
path = "tests/array_literals.rs"
[[test]]
name = "async_await_tests"
path = "tests/async_await_tests.rs"
[[test]]
name = "async_manual"
path = "tests/async_manual.rs"
[[test]]
name = "basic_arithmetic"
path = "tests/basic_arithmetic.rs"
[[test]]
name = "bigint_additional"
path = "tests/bigint_additional.rs"
[[test]]
name = "bigint_api"
path = "tests/bigint_api.rs"
[[test]]
name = "bigint_asintn"
path = "tests/bigint_asintn.rs"
[[test]]
name = "bigint_comparison_edgecases"
path = "tests/bigint_comparison_edgecases.rs"
[[test]]
name = "bigint_edgecases"
path = "tests/bigint_edgecases.rs"
[[test]]
name = "bigint_number_interop"
path = "tests/bigint_number_interop.rs"
[[test]]
name = "bigint_parity"
path = "tests/bigint_parity.rs"
[[test]]
name = "bigint_relational_additional"
path = "tests/bigint_relational_additional.rs"
[[test]]
name = "bigint_relational_more_edgecases"
path = "tests/bigint_relational_more_edgecases.rs"
[[test]]
name = "bigint_tests"
path = "tests/bigint_tests.rs"
[[test]]
name = "boxed_prototype_compare"
path = "tests/boxed_prototype_compare.rs"
[[test]]
name = "boxed_prototype_debug"
path = "tests/boxed_prototype_debug.rs"
[[test]]
name = "boxed_prototype_equalities"
path = "tests/boxed_prototype_equalities.rs"
[[test]]
name = "boxed_prototypes_fixed"
path = "tests/boxed_prototypes_fixed.rs"
[[test]]
name = "builtin_functions"
path = "tests/builtin_functions.rs"
[[test]]
name = "class_extends_expr_parse"
path = "tests/class_extends_expr_parse.rs"
[[test]]
name = "class_tests"
path = "tests/class_tests.rs"
[[test]]
name = "comment_tests"
path = "tests/comment_tests.rs"
[[test]]
name = "compound_assign"
path = "tests/compound_assign.rs"
[[test]]
name = "compound_assign_edgecases"
path = "tests/compound_assign_edgecases.rs"
[[test]]
name = "conditional_expressions"
path = "tests/conditional_expressions.rs"
[[test]]
name = "const_tests"
path = "tests/const_tests.rs"
[[test]]
name = "control_flow"
path = "tests/control_flow.rs"
[[test]]
name = "date_tests"
path = "tests/date_tests.rs"
[[test]]
name = "destructuring_defaults"
path = "tests/destructuring_defaults.rs"
[[test]]
name = "destructuring_tests"
path = "tests/destructuring_tests.rs"
[[test]]
name = "equality_concat"
path = "tests/equality_concat.rs"
[[test]]
name = "es6_modules"
path = "tests/es6_modules.rs"
[[test]]
name = "for_of_destructuring"
path = "tests/for_of_destructuring.rs"
[[test]]
name = "function_call_env_edgecases"
path = "tests/function_call_env_edgecases.rs"
[[test]]
name = "functions"
path = "tests/functions.rs"
[[test]]
name = "generator_tests"
path = "tests/generator_tests.rs"
[[test]]
name = "increment_decrement"
path = "tests/increment_decrement.rs"
[[test]]
name = "interval_test"
path = "tests/interval_test.rs"
[[test]]
name = "intl_get_invalid_language_tags"
path = "tests/intl_get_invalid_language_tags.rs"
[[test]]
name = "intl_regression"
path = "tests/intl_regression.rs"
[[test]]
name = "iterator_builtin_next"
path = "tests/iterator_builtin_next.rs"
[[test]]
name = "iterator_edgecases"
path = "tests/iterator_edgecases.rs"
[[test]]
name = "iterator_string"
path = "tests/iterator_string.rs"
[[test]]
name = "js_testintl"
path = "tests/js_testintl.rs"
[[test]]
name = "logical_assignments"
path = "tests/logical_assignments.rs"
[[test]]
name = "map_set_tests"
path = "tests/map_set_tests.rs"
[[test]]
name = "nested_destructuring"
path = "tests/nested_destructuring.rs"
[[test]]
name = "nested_single_statement_bodies"
path = "tests/nested_single_statement_bodies.rs"
[[test]]
name = "nullish_coalescing_tests"
path = "tests/nullish_coalescing_tests.rs"
[[test]]
name = "number_tests"
path = "tests/number_tests.rs"
[[test]]
name = "object_literals"
path = "tests/object_literals.rs"
[[test]]
name = "optional_chaining"
path = "tests/optional_chaining.rs"
[[test]]
name = "os_tests"
path = "tests/os_tests.rs"
[[test]]
name = "parse_error_metadata"
path = "tests/parse_error_metadata.rs"
[[test]]
name = "parser_and_tokenization"
path = "tests/parser_and_tokenization.rs"
[[test]]
name = "parser_named_function_expr"
path = "tests/parser_named_function_expr.rs"
[[test]]
name = "parser_named_function_expr_more"
path = "tests/parser_named_function_expr_more.rs"
[[test]]
name = "private_name_tests"
path = "tests/private_name_tests.rs"
[[test]]
name = "promise_async_tests"
path = "tests/promise_async_tests.rs"
[[test]]
name = "promise_deep_chain"
path = "tests/promise_deep_chain.rs"
[[test]]
name = "promise_tests"
path = "tests/promise_tests.rs"
[[test]]
name = "prototype_tests"
path = "tests/prototype_tests.rs"
[[test]]
name = "proxy_tests"
path = "tests/proxy_tests.rs"
[[test]]
name = "reflect_apply_construct_tests"
path = "tests/reflect_apply_construct_tests.rs"
[[test]]
name = "reflect_tests"
path = "tests/reflect_tests.rs"
[[test]]
name = "regex_literal"
path = "tests/regex_literal.rs"
[[test]]
name = "regexp_tests"
path = "tests/regexp_tests.rs"
[[test]]
name = "relational_comparisons"
path = "tests/relational_comparisons.rs"
[[test]]
name = "repl_tests"
path = "tests/repl_tests.rs"
[[test]]
name = "single_statement_bodies"
path = "tests/single_statement_bodies.rs"
[[test]]
name = "stack_traces"
path = "tests/stack_traces.rs"
[[test]]
name = "stage1_integration_tests"
path = "tests/stage1_integration_tests.rs"
[[test]]
name = "std_tests"
path = "tests/std_tests.rs"
[[test]]
name = "string_literals"
path = "tests/string_literals.rs"
[[test]]
name = "symbol_additional_tests"
path = "tests/symbol_additional_tests.rs"
[[test]]
name = "symbol_property_tests"
path = "tests/symbol_property_tests.rs"
[[test]]
name = "symbol_static_tests"
path = "tests/symbol_static_tests.rs"
[[test]]
name = "symbol_to_number_tests"
path = "tests/symbol_to_number_tests.rs"
[[test]]
name = "timeout_tests"
path = "tests/timeout_tests.rs"
[[test]]
name = "tmpfile_tests"
path = "tests/tmpfile_tests.rs"
[[test]]
name = "trailing_comma_array"
path = "tests/trailing_comma_array.rs"
[[test]]
name = "try_catch"
path = "tests/try_catch.rs"
[[test]]
name = "typedarray_tests"
path = "tests/typedarray_tests.rs"
[[test]]
name = "weakmap_weakset_tests"
path = "tests/weakmap_weakset_tests.rs"