Restore missing object definitions

This commit is contained in:
Rick Waldron 2016-02-22 19:17:24 -05:00
parent b92e68646d
commit 79dfcf3e85

View File

@ -52,6 +52,8 @@ assert.sameValue(2 ** !n, 1, "!s -> !2 -> false -> ToNumber(false) -> 0");
var capture = [];
var leftValue = { valueOf() { capture.push("leftValue"); return 3; }};
var rightValue = { valueOf() { capture.push("rightValue"); return 2; }};
(capture.push("left"), leftValue) ** +(capture.push("right"), rightValue);
// ^