mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 04:54:44 +02:00
Add missing operator in test (#804)
Automatic Semicolon Insertion hides an error here by transforming a long ReturnStatement into a ReturnStatement followed by an ExpressionStatement that is never reached. The conditions on the second line are thus never tested.
This commit is contained in:
parent
48896f9445
commit
08071715e4
@ -11,7 +11,7 @@ description: >
|
|||||||
var obj = { prop: "abc" };
|
var obj = { prop: "abc" };
|
||||||
|
|
||||||
var func = function (x) {
|
var func = function (x) {
|
||||||
return this === obj && x === 1 && arguments[1] === 2
|
return this === obj && x === 1 && arguments[1] === 2 &&
|
||||||
arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
|
arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user