Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: test/mjsunit/regress/regress-parse-object-literal.js

Issue 26375004: Unify and fix checkers for duplicate object literal properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix check for illegal getter/setter name. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scanner.cc ('k') | test/preparser/preparser.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-parse-object-literal.js
diff --git a/test/mjsunit/regress/regress-173361.js b/test/mjsunit/regress/regress-parse-object-literal.js
similarity index 95%
copy from test/mjsunit/regress/regress-173361.js
copy to test/mjsunit/regress/regress-parse-object-literal.js
index f9cfb6684c0d52996c7ceac8412defbaf48a5eeb..96d63c2c1285db91fa2d4d416545638bae2230ca 100644
--- a/test/mjsunit/regress/regress-173361.js
+++ b/test/mjsunit/regress/regress-parse-object-literal.js
@@ -25,9 +25,5 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --harmony
-
-const x = 7;
-
-function f() { const y = 8; }
-f();
+// Should throw, not crash.
+assertThrows("var o = { get /*space*/ () {} }");
« no previous file with comments | « src/scanner.cc ('k') | test/preparser/preparser.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698