Skip to content

Commit

Permalink
[Tests] Adding a test for Safari 7.1 and later (runtime check added in
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 20, 2015
1 parent fd258b5 commit 972b990
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ describe('Promise', function () {
expect(Promise).not.to.have.property('defer');
expect(Promise.prototype).not.to.have.property('chain');
});

it('requires an object context', function () {
// this fails in Safari 7.1 - 9
expect(function promiseDotCallThree() {
Promise.call(3, function () {});
}).to['throw']();
});
});

0 comments on commit 972b990

Please sign in to comment.