Skip to content

Commit

Permalink
add function test for sequence context
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancahill committed Nov 16, 2017
1 parent 6b1c0bc commit a9b842c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/function/samples/sequence-expression/_config.js
@@ -0,0 +1,3 @@
module.exports = {
description: 'do not change context of callable in sequence expressions'
};
5 changes: 5 additions & 0 deletions test/function/samples/sequence-expression/main.js
@@ -0,0 +1,5 @@

// should maintain this context
var module = {};
module.bar = function () { assert.notEqual(this, module); };
var h = (0, module.bar)();

0 comments on commit a9b842c

Please sign in to comment.