blob: 7705e3d598d042089efe7ce9a82ce3ff0c73bc08 [file] [log] [blame]
Tests that the peephole CompareEq optimization for the case where one side is predicted final object and the other side is predicted either final object or other (i.e. null or undefined) doesn't assert when both sides are also proven final object.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS foo({f:42}, null) threw exception TypeError: null is not an object (evaluating 'b.f').
PASS foo(o, o) is [42, 42, true]
PASS successfullyParsed is true
TEST COMPLETE