blob: e33e66ec3f876b3b5583ca90da61267095965036 [file] [log] [blame]
// 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: [noStrict]
---*/
var context = null;
var fn = function() {
return function() {
context = this;
};
};
fn()`NoSubstitutionTemplate`;
assert.sameValue(context, this);
fn = function() {
return () => { context = this; };
};
context = null;
fn()`NoSubstitutionTemplate`;
assert.sameValue(context, this);