Title: [104750] trunk
- Revision
- 104750
- Author
- [email protected]
- Date
- 2012-01-11 15:15:20 -0800 (Wed, 11 Jan 2012)
Log Message
Typo in error message: Unexpected token 'defualt'
https://bugs.webkit.org/show_bug.cgi?id=75105
Patch by Eugene Girard <[email protected]> on 2012-01-11
Reviewed by Simon Fraser.
Source/_javascript_Core:
* parser/Parser.h:
(JSC::Parser::getTokenName):
LayoutTests:
* fast/js/reserved-words-as-property-expected.txt:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (104749 => 104750)
--- trunk/LayoutTests/ChangeLog 2012-01-11 23:04:19 UTC (rev 104749)
+++ trunk/LayoutTests/ChangeLog 2012-01-11 23:15:20 UTC (rev 104750)
@@ -1,3 +1,12 @@
+2012-01-11 Eugene Girard <[email protected]>
+
+ Typo in error message: Unexpected token 'defualt'
+ https://bugs.webkit.org/show_bug.cgi?id=75105
+
+ Reviewed by Simon Fraser.
+
+ * fast/js/reserved-words-as-property-expected.txt:
+
2012-01-11 Ojan Vafai <[email protected]>
Fix duplicate expectations from r104715.
Modified: trunk/LayoutTests/fast/js/reserved-words-as-property-expected.txt (104749 => 104750)
--- trunk/LayoutTests/fast/js/reserved-words-as-property-expected.txt 2012-01-11 23:04:19 UTC (rev 104749)
+++ trunk/LayoutTests/fast/js/reserved-words-as-property-expected.txt 2012-01-11 23:15:20 UTC (rev 104750)
@@ -301,8 +301,8 @@
PASS (function(){/default/.test(function g(default){ })}); true threw exception SyntaxError: Expected an identifier but found 'default' instead.
PASS try{}catch(default){}; true threw exception SyntaxError: Expected an identifier but found 'default' instead.
PASS (function(){try{}catch(default){}; true}); true threw exception SyntaxError: Expected an identifier but found 'default' instead.
-PASS function default(){ }; true threw exception SyntaxError: Unexpected token 'defualt'.
-PASS (function(){function default(){ }; true}); true threw exception SyntaxError: Unexpected token 'defualt'.
+PASS function default(){ }; true threw exception SyntaxError: Unexpected token 'default'.
+PASS (function(){function default(){ }; true}); true threw exception SyntaxError: Unexpected token 'default'.
PASS ({ "default": 42 }.default === 42) is true
PASS (function(){({ "default": 42 }.default === 42)}); true is true
PASS ({ default: 42 }.default === 42) is true
@@ -319,8 +319,8 @@
PASS (function(){"use strict";/default/.test(function g(default){ "use strict"; })}); true threw exception SyntaxError: Expected an identifier but found 'default' instead.
PASS "use strict";try{}catch(default){}; true threw exception SyntaxError: Expected an identifier but found 'default' instead.
PASS (function(){"use strict";try{}catch(default){}; true}); true threw exception SyntaxError: Expected an identifier but found 'default' instead.
-PASS "use strict";function default(){ "use strict"; }; true threw exception SyntaxError: Unexpected token 'defualt'.
-PASS (function(){"use strict";function default(){ "use strict"; }; true}); true threw exception SyntaxError: Unexpected token 'defualt'.
+PASS "use strict";function default(){ "use strict"; }; true threw exception SyntaxError: Unexpected token 'default'.
+PASS (function(){"use strict";function default(){ "use strict"; }; true}); true threw exception SyntaxError: Unexpected token 'default'.
PASS "use strict";({ "default": 42 }.default === 42) is true
PASS (function(){"use strict";({ "default": 42 }.default === 42)}); true is true
PASS "use strict";({ default: 42 }.default === 42) is true
Modified: trunk/Source/_javascript_Core/ChangeLog (104749 => 104750)
--- trunk/Source/_javascript_Core/ChangeLog 2012-01-11 23:04:19 UTC (rev 104749)
+++ trunk/Source/_javascript_Core/ChangeLog 2012-01-11 23:15:20 UTC (rev 104750)
@@ -1,3 +1,13 @@
+2012-01-11 Eugene Girard <[email protected]>
+
+ Typo in error message: Unexpected token 'defualt'
+ https://bugs.webkit.org/show_bug.cgi?id=75105
+
+ Reviewed by Simon Fraser.
+
+ * parser/Parser.h:
+ (JSC::Parser::getTokenName):
+
2012-01-11 Anders Carlsson <[email protected]>
Assertion failure in JSC::allocateCell trying to allocate a JSString
Modified: trunk/Source/_javascript_Core/parser/Parser.h (104749 => 104750)
--- trunk/Source/_javascript_Core/parser/Parser.h 2012-01-11 23:04:19 UTC (rev 104749)
+++ trunk/Source/_javascript_Core/parser/Parser.h 2012-01-11 23:15:20 UTC (rev 104750)
@@ -559,7 +559,7 @@
case CASE:
return "case";
case DEFAULT:
- return "defualt";
+ return "default";
case FOR:
return "for";
case NEW:
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes