test262/test/language/asi/S7.9_A10_T2.js

17 lines
385 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Check {} for automatic semicolon insertion
es5id: 7.9_A10_T2
description: Checking if execution of "{}*1" fails
negative:
phase: early
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
//CHECK#1
{} * 1