fix(constants): expose deprecated module alias#2769
Conversation
47c2bf0 to
a201504
Compare
|
Rebased onto current |
# Conflicts: # docs/api/perry.d.ts # docs/src/api/reference.md
# Conflicts: # crates/perry-runtime/src/object/native_module.rs # docs/api/perry.d.ts # docs/src/api/reference.md
# Conflicts: # crates/perry-runtime/src/object/native_module.rs # docs/api/perry.d.ts # docs/src/api/reference.md
Summary
constantsas a supported native module with flat fs/os/crypto constant exports Perry already supports under module-specific*.constantsnamespacesnode:constantsproperty reads through the existing fs/os/crypto constants tables and enumerate the supported flat keysprocess.getBuiltinModule("constants")matches the imported/default namespace identityprocess.getBuiltinModuleFixes #2571
Verification
cargo fmt --all -- --checkjq empty test-parity/known_failures.json test-parity/threshold.jsongit diff --check./scripts/check_file_size.shRUSTC_WRAPPER= cargo check -p perry-api-manifest -p perry-codegen -p perry-runtimeRUSTC_WRAPPER= cargo test -p perry-api-manifestRUSTC_WRAPPER= cargo test -p perry-codegen --test manifest_consistencyPATH=/home/github-runner/actions-runner/externals/node24/bin:$PATH RUSTC_WRAPPER= ./run_parity_tests.sh --suite node-suite --module constants --filter flat-aliasRUSTC_WRAPPER= ./scripts/regen_api_docs.shgit diff --check --cached