| // Copyright (C) 2015 André Bargull. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: Compound Assignment Operator evaluates its operands from left to right. |
| The left-hand side expression is evaluated before the right-hand side. |
| Left-hand side expression is MemberExpression: base[prop]. base is the |
| Check operator is "x ^= y". |
| function DummyError() { } |
| assert.throws(DummyError, function() { |
| $ERROR("right-hand side expression evaluated"); |
| assert.throws(TypeError, function() { |
| $ERROR("property key evaluated"); |
| $ERROR("right-hand side expression evaluated"); |