split the tests for arguments in methods
This commit is contained in:
parent
aa3b028997
commit
129e186953
|
|
@ -1154,7 +1154,7 @@ array_literal_with_spread_4: {
|
||||||
node_version: ">=6"
|
node_version: ">=6"
|
||||||
}
|
}
|
||||||
|
|
||||||
methods_using_arguments: {
|
object_literal_method_using_arguments: {
|
||||||
options = {
|
options = {
|
||||||
arrows: true,
|
arrows: true,
|
||||||
}
|
}
|
||||||
|
|
@ -1164,12 +1164,6 @@ methods_using_arguments: {
|
||||||
return arguments[0];
|
return arguments[0];
|
||||||
}
|
}
|
||||||
}).m("PASS"));
|
}).m("PASS"));
|
||||||
|
|
||||||
console.log(new class {
|
|
||||||
m() {
|
|
||||||
return arguments[0];
|
|
||||||
}
|
|
||||||
}().m("PASS"));
|
|
||||||
}
|
}
|
||||||
expect: {
|
expect: {
|
||||||
console.log(({
|
console.log(({
|
||||||
|
|
@ -1177,16 +1171,29 @@ methods_using_arguments: {
|
||||||
return arguments[0];
|
return arguments[0];
|
||||||
}
|
}
|
||||||
}).m("PASS"));
|
}).m("PASS"));
|
||||||
|
}
|
||||||
|
expect_stdout: "PASS"
|
||||||
|
node_version: ">=6"
|
||||||
|
}
|
||||||
|
|
||||||
|
class_method_using_arguments: {
|
||||||
|
options = {
|
||||||
|
arrows: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
console.log(new class {
|
console.log(new class {
|
||||||
m() {
|
m() {
|
||||||
return arguments[0];
|
return arguments[0];
|
||||||
}
|
}
|
||||||
}().m("PASS"));
|
}().m("PASS"));
|
||||||
}
|
}
|
||||||
expect_stdout: [
|
expect: {
|
||||||
"PASS",
|
console.log(new class {
|
||||||
"PASS",
|
m() {
|
||||||
]
|
return arguments[0];
|
||||||
|
}
|
||||||
|
}().m("PASS"));
|
||||||
|
}
|
||||||
|
expect_stdout: "PASS"
|
||||||
node_version: ">=6"
|
node_version: ">=6"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user