| Index: test/mjsunit/regress/regress-1215.js
|
| diff --git a/test/mjsunit/regress/regress-1110.js b/test/mjsunit/regress/regress-1215.js
|
| similarity index 82%
|
| copy from test/mjsunit/regress/regress-1110.js
|
| copy to test/mjsunit/regress/regress-1215.js
|
| index 204a87ba3d16743a945fb2fb5817538fd43e7315..93a89f6a3fb87bf72123c2a259a1ad98cc4945e9 100644
|
| --- a/test/mjsunit/regress/regress-1110.js
|
| +++ b/test/mjsunit/regress/regress-1215.js
|
| @@ -25,14 +25,12 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Test that the illegal continue is thrown at parse time.
|
| +// Make sure that the "message" property on Error.prototype
|
| +// has the following descriptor:
|
| +// {writable: true, enumerable: false, and configurable: true}
|
|
|
| -try {
|
| - function Crash() { continue;if (Crash) {
|
| - } }
|
| - Crash();
|
| - assertTrue(false);
|
| -} catch (e) {
|
| - assertTrue(e instanceof SyntaxError);
|
| - assertTrue(/continue/.test(e.message));
|
| -}
|
| +var desc = Object.getOwnPropertyDescriptor(Error.prototype, 'message');
|
| +
|
| +assertEquals(desc.writable, true);
|
| +assertEquals(desc.enumerable, false);
|
| +assertEquals(desc.configurable, true);
|
|
|