mantoni/Sinon.JS — comment on commit 9dab6150f3c8fac75785fad05851ca7b3817b83b
File: lib/sinon/spy.js line 382
By neonstalwart:

you need to quote the `yield` property name in strict mode...

```
/homes/staff/ben/hg/rmdb/static/cws/src/test/sinon/lib/sinon/spy.js:407
yield: function () {
^^^^^

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected strict mode reserved word
```

```diff
diff --git a/lib/sinon/spy.js b/lib/sinon/spy.js
index 8a3290d..70c275d 100644
--- a/lib/sinon/spy.js
+++ b/lib/sinon/spy.js
@@ -404,7 +404,7 @@
this.args[pos].apply(null, args);
},

- yield: function () {
+ "yield": function () {
var args = this.args;
for (var i = 0, l = args.length; i < l; ++i) {
if (typeof args[i] === "function") {
```