[package]
edition = "2024"
name = "ecma-runtime-cat"
version = "0.3.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ECMAScript runtime: native built-ins (console, Math, JSON, parseInt, isNaN, Promise, Object, Array, Error, ...) that the boa-cat engine exposes to scripts. v0.3.5 adds the seven standard error constructors `Error`, `TypeError`, `RangeError`, `SyntaxError`, `ReferenceError`, `EvalError`, `URIError`. Each is callable as `Error(message)` or `new Error(message)` and returns an Object with `name` (the constructor's name) and `message` (the first argument coerced via `to_string`)."
readme = "README.md"
keywords = [
"ecmascript",
"javascript",
"runtime",
"builtin",
"boa",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
[lib]
name = "ecma_runtime_cat"
path = "src/lib.rs"
[[test]]
name = "error_constructors"
path = "tests/error_constructors.rs"
[[test]]
name = "globals"
path = "tests/globals.rs"
[[test]]
name = "json_parse"
path = "tests/json_parse.rs"
[[test]]
name = "math"
path = "tests/math.rs"
[[test]]
name = "object_array"
path = "tests/object_array.rs"
[[test]]
name = "promise"
path = "tests/promise.rs"
[dependencies.boa-cat]
version = "0.7"
[dependencies.comp-cat-rs]
version = "0.5"
[dependencies.ecma-lex-cat]
version = "0.1"
[dependencies.ecma-parse-cat]
version = "0.3"
[dependencies.ecma-syntax-cat]
version = "0.1"
[dev-dependencies.proptest]
version = "1"
[lints.clippy]
manual_map = "warn"
needless_pass_by_value = "warn"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1