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

Unified Diff: test/webkit/for-in-cached.js

Issue 329413002: Throw syntax error when a getter/setter has the wrong number of params (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test exception 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/preparser/duplicate-property.pyt ('k') | test/webkit/for-in-cached-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/webkit/for-in-cached.js
diff --git a/test/webkit/for-in-cached.js b/test/webkit/for-in-cached.js
index 1842d612931c981da3ae88676ad228583d42fce5..760a5b458907689e41786db4c782cf1d1c36ac6c 100644
--- a/test/webkit/for-in-cached.js
+++ b/test/webkit/for-in-cached.js
@@ -84,8 +84,8 @@ function forIn5(o) {
}
shouldBe("forIn5({get foo() { return 'called getter'} })", "['foo', 'called getter']");
-shouldBe("forIn5({set foo() { } })", "['foo', undefined]");
-shouldBe("forIn5({get foo() { return 'called getter'}, set foo() { }})", "['foo', 'called getter']");
+shouldBe("forIn5({set foo(v) { } })", "['foo', undefined]");
+shouldBe("forIn5({get foo() { return 'called getter'}, set foo(v) { }})", "['foo', 'called getter']");
function cacheClearing() {
for(var j=0; j < 10; j++){
« no previous file with comments | « test/preparser/duplicate-property.pyt ('k') | test/webkit/for-in-cached-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698