mirror of https://github.com/tc39/test262.git
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`;
|
fn()`NoSubstitutionTemplate`;
|
||||||
|
|
||||||
assert.sameValue(context, this);
|
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`;
|
fn()`NoSubstitutionTemplate`;
|
||||||
|
|
||||||
assert.sameValue(context, undefined);
|
assert.sameValue(context, undefined);
|
||||||
|
|
||||||
|
fn = function() {
|
||||||
|
return () => { context = this; };
|
||||||
|
};
|
||||||
|
|
||||||
|
context = null;
|
||||||
|
fn()`NoSubstitutionTemplate`;
|
||||||
|
|
||||||
|
assert.sameValue(context, undefined);
|
||||||
|
|
Loading…
Reference in New Issue