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

Unified Diff: LayoutTests/fast/js/script-tests/reserved-words-as-property.js

Issue 339363002: Fix invalid syntax for JS setters in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
Index: LayoutTests/fast/js/script-tests/reserved-words-as-property.js
diff --git a/LayoutTests/fast/js/script-tests/reserved-words-as-property.js b/LayoutTests/fast/js/script-tests/reserved-words-as-property.js
index 452398d894e35086e1d61610f880ea87c513e108..f86f3a1a15b8e3f033068eb4fe964c7e38b12a34 100644
--- a/LayoutTests/fast/js/script-tests/reserved-words-as-property.js
+++ b/LayoutTests/fast/js/script-tests/reserved-words-as-property.js
@@ -56,7 +56,7 @@ function testWord(word, strictPrefix, expectedResult) {
// These should be allowed for all words, even reserved ones.
testWordEvalAndFunction(strictPrefix + "({ \"" + word + "\": 42 }." + word + " === 42)", false);
testWordEvalAndFunction(strictPrefix + "({ " + word + ": 42 }." + word + " === 42)", false);
- testWordEvalAndFunction(strictPrefix + "({ get " + word + "(){}, set " + word + "(){}, parsedOkay: 42 }.parsedOkay === 42)", false);
+ testWordEvalAndFunction(strictPrefix + "({ get " + word + "(){}, set " + word + "(_){}, parsedOkay: 42 }.parsedOkay === 42)", false);
}
function testWordStrictAndNonStrict(word, condition) {

Powered by Google App Engine
This is Rietveld 408576698