Skip to content

Commit

Permalink
[Tests] Fix new tests from ca2e21f in node 0.12
Browse files Browse the repository at this point in the history
(#4)
ljharb committed Dec 12, 2015

Verified

This commit was signed with the committer’s verified signature.
rm3l Armel Soro
1 parent ca2e21f commit 778f77f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/native.js
Original file line number Diff line number Diff line change
@@ -285,13 +285,15 @@ test('iterables', function (t) {
st.notOk(isEqual(b, c), 'unequal Set (b, c) are not equal');

st.test('Sets with strings as iterables', function (sst) {
var ab = new Set('ab');
var ab;
try { ab = new Set('ab'); } catch (e) { ab = new Set(); } // node 0.12 throws when given a string
if (ab.size !== 2) {
// work around IE 11 (and others) bug accepting iterables
ab.add('a');
ab.add('b');
}
var ac = new Set('ac');
var ac;
try { ac = new Set('ac'); } catch (e) { ac = new Set(); } // node 0.12 throws when given a string
if (ab.size !== 2) {
// work around IE 11 (and others) bug accepting iterables
ab.add('a');

0 comments on commit 778f77f

Please sign in to comment.