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

Unified Diff: test/preparser/duplicate-property.pyt

Issue 352173004: Relax object literal checking to follow ES6 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « test/mjsunit/strict-mode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/preparser/duplicate-property.pyt
diff --git a/test/preparser/duplicate-property.pyt b/test/preparser/duplicate-property.pyt
index 594b4786cb0d66afc3de690d11968910142b869b..0dcd212a1070a5ee99cfe76b9deab11351ffdce3 100644
--- a/test/preparser/duplicate-property.pyt
+++ b/test/preparser/duplicate-property.pyt
@@ -1,4 +1,4 @@
-# Copyright 2011 the V8 project authors. All rights reserved.
+# Copyright 2011, 2014 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
@@ -46,7 +46,7 @@ def PropertyTest(name, propa, propb, allow_strict = True):
Template("strict-$name-data-data", """
"use strict";
var o = {$id1: 42, $id2: 42};
- """)(replacement, "strict_duplicate_property")
+ """)(replacement, None)
Template("$name-data-data", """
var o = {$id1: 42, $id2: 42};
@@ -54,27 +54,27 @@ def PropertyTest(name, propa, propb, allow_strict = True):
StrictTest("$name-data-get", """
var o = {$id1: 42, get $id2(){}};
- """, replacement, "accessor_data_property")
+ """, replacement, None)
StrictTest("$name-data-set", """
var o = {$id1: 42, set $id2(v){}};
- """, replacement, "accessor_data_property")
+ """, replacement, None)
StrictTest("$name-get-data", """
var o = {get $id1(){}, $id2: 42};
- """, replacement, "accessor_data_property")
+ """, replacement, None)
StrictTest("$name-set-data", """
var o = {set $id1(v){}, $id2: 42};
- """, replacement, "accessor_data_property")
+ """, replacement, None)
StrictTest("$name-get-get", """
var o = {get $id1(){}, get $id2(){}};
- """, replacement, "accessor_get_set")
+ """, replacement, None)
StrictTest("$name-set-set", """
var o = {set $id1(v){}, set $id2(v){}};
- """, replacement, "accessor_get_set")
+ """, replacement, None)
StrictTest("$name-nested-get", """
var o = {get $id1(){}, o: {get $id2(){} } };
« no previous file with comments | « test/mjsunit/strict-mode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698