Skip to content

Expose full $262 object in boa_cli #5054

@ivankra

Description

@ivankra

ECMASCript feature

I'm interested in running test262 on boa eshost-style - using boa_cli shell rather than the separate integrated tester binary (boa_tester). This requires $262 object, which boa_cli doesn't directly expose - there's $boa (with --debug-object) but 1) it requires maintaining a custom shim to map $boa <-> $262 methods which is error- and labor-prone (especially for complex logic like $262.agent) and 2) doesn't provide some methods, like detachArrayBuffer and now the recently added IsHTMLDDA, so there are discrepancies in test results.

Could you the expose the full internal $262 object (js262.rs) in boa_cli? I suppose --debug-object flag can be reused to add both $boa and $262.

[spec]: https://github.com/tc39/test262/blob/main/INTERPRETING.md#host-defined-functions

Example code

Properties like $262.detachArrayBuffer, $262.agent, $262.IsHTMLDDA should be available with boa --debug-object (or another flag)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions