| // Copyright (C) 2016 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| If Result(3).type is not normal, then Result(3).type must be throw. |
| Throw Result(3).value as an exception |
| description: Return statement |
| value = (0,eval)("return;"); |
| $ERROR('#1.1: return must throw SyntaxError. Actual: ' + value); |
| if ((e instanceof SyntaxError) !== true) { |
| $ERROR('#1.2: return must throw SyntaxError. Actual: ' + e); |
| assert.throws(SyntaxError, function() { |