'use strict'; // Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 12.3.7 description: Invocation context for call expressions info: | A tagged template is a function call where the arguments of the call are derived from a TemplateLiteral. The actual arguments include a template object and the values produced by evaluating the expressions embedded within the TemplateLiteral. flags: [onlyStrict] ---*/ var context = null; var fn = function() { return function() { context = this; }; }; fn()`NoSubstitutionTemplate`; assert.sameValue(context, undefined); fn = function() { return () => { context = this; }; }; context = null; fn()`NoSubstitutionTemplate`; assert.sameValue(context, undefined); reportCompare(0, 0);