Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 857281b

Browse files
authored
test: re-enable assert_throws_stack tests for node-chakracore (#504)
1 parent adee1d5 commit 857281b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

test/message/assert_throws_stack.chakracore.out

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
assert.js:*
2-
compareExceptionKey(actual, expected, key, msg);
2+
compareExceptionKey(actual, expected, key, msg, keys);
33
^
44

5-
AssertionError [ERR_ASSERTION]: bar: expected true, not undefined
6-
at Anonymous function (*assert_throws_stack.js:*:*)
5+
AssertionError [ERR_ASSERTION]: Input A expected to deepStrictEqual input B:
6+
+ expected - actual
7+
8+
- Comparison {}
9+
+ Comparison {
10+
+ bar: true
11+
+ }
12+
at Anonymous function (*assert_throws_stack.js:*)
13+
at *
714
at *
815
at *
9-
at *

test/message/assert_throws_stack.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@
33
require('../common');
44
const assert = require('assert').strict;
55

6-
// Temporarily disabled on chakra.
7-
const common = require('../common');
8-
if (!common.isChakraEngine) {
96
assert.throws(() => { throw new Error('foo'); }, { bar: true });
10-
}

0 commit comments

Comments
 (0)