diff --git a/test/language/expressions/tagged-template/call-expression-context-no-strict.js b/test/language/expressions/tagged-template/call-expression-context-no-strict.js index 834ebc71b5..5ca66f999a 100644 --- a/test/language/expressions/tagged-template/call-expression-context-no-strict.js +++ b/test/language/expressions/tagged-template/call-expression-context-no-strict.js @@ -20,3 +20,12 @@ var fn = function() { fn()`NoSubstitutionTemplate`; assert.sameValue(context, this); + +fn = function() { + return () => { context = this; }; +}; + +context = null; +fn()`NoSubstitutionTemplate`; + +assert.sameValue(context, this); diff --git a/test/language/expressions/tagged-template/call-expression-context-strict.js b/test/language/expressions/tagged-template/call-expression-context-strict.js index 1bdb6ec2b2..d90aa46167 100644 --- a/test/language/expressions/tagged-template/call-expression-context-strict.js +++ b/test/language/expressions/tagged-template/call-expression-context-strict.js @@ -20,3 +20,12 @@ var fn = function() { fn()`NoSubstitutionTemplate`; assert.sameValue(context, undefined); + +fn = function() { + return () => { context = this; }; +}; + +context = null; +fn()`NoSubstitutionTemplate`; + +assert.sameValue(context, undefined);