diff --git a/test/sandbox-test.js b/test/sandbox-test.js index 4da6068dd..b5c4399d8 100644 --- a/test/sandbox-test.js +++ b/test/sandbox-test.js @@ -971,7 +971,9 @@ describe("Sandbox", function () { it("should error when descriptor has no setter", function () { var sandbox = this.sandbox; var object = { - get catpants() {} + get catpants() { + return; + } }; assert.exception( diff --git a/test/stub-test.js b/test/stub-test.js index d6250fc9d..0fcea0333 100644 --- a/test/stub-test.js +++ b/test/stub-test.js @@ -1295,6 +1295,7 @@ describe("stub", function () { var obj = { get prop() { fail("should not call getter"); + return; } }; @@ -2910,6 +2911,7 @@ describe("stub", function () { var myObj = { get prop() { fail("should not call the old getter"); + return; } };