diff --git a/test/common/eval-test._js b/test/common/eval-test._js index 1d26033d..c56ec550 100644 --- a/test/common/eval-test._js +++ b/test/common/eval-test._js @@ -656,6 +656,15 @@ asyncTest("coffeescript wrapper 2", 1, function(_) { }, "cs2"); }) +asyncTest("coffeescript wrapper 2b", 1, function(_) { + evalTest(function f(_) { + var _this = this; + return (function() { + return delay(_, "cs2"); + }).call(_this); + }, "cs2"); +}) + asyncTest("coffeescript wrapper 3", 1, function(_) { evalTest(function f(_) { return (function() { @@ -664,6 +673,15 @@ asyncTest("coffeescript wrapper 3", 1, function(_) { }, "cs3"); }) +asyncTest("coffeescript wrapper 3b", 1, function(_) { + evalTest(function f(_) { + var _this = this; + return (function() { + return delay(_, "cs3"); + }).apply(_this, arguments); + }, "cs3"); +}) + asyncTest("sync try/catch in async", 1, function(_) { evalTest(function f(_) { try {