mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
fixup! Introduce additional tests for ES6 templates
Include tests using arrow functions
This commit is contained in:
parent
e42f977122
commit
6863328f88
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user