Closed Bug 1924608 Opened 8 months ago Closed 8 months ago

[Outreachy] Add non262 tests for Error.isError

Categories

(Core :: JavaScript: Standard Library, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: dminor, Assigned: sarahngima77)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Once the initial implementation for Error.isError lands in Bug 1924202, we'll need some tests.

There's currently no tests for the Error.isError proposal in test262 because it only just reached Stage 2.7. We should add some non262 tests for now, to have some coverage for our implementation. Please add a new isError.js test file to this directory with some tests to cover basic functionality, e.g. things like:

assertEq(Error.isError(2), false);
assertEq(Error.isError(new Error()), true)

These tests can be run using ./mach jstests non262/Error.

Let me work on this.

Assignee: sarahngima77 → caritandibe

(In reply to Chiemelie Carita from comment #1)

Let me work on this.

I had already been assigned this issue.

Assignee: caritandibe → sarahngima77
Severity: -- → N/A
Priority: -- → P3
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9ffe12dcc8a Add non262 tests for Error.isError; r=dminor
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: