Changeset 88974 in webkit
- Timestamp:
- Jun 15, 2011 2:46:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r88972 r88974 1 2011-06-15 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Darin Adler. 4 5 REGRESSION (r88719): 5by5.tv schedule is not visible 6 https://bugs.webkit.org/show_bug.cgi?id=62720 7 8 Add test for the "interesting" ascii characters that may occur in an identifier 9 10 * fast/js/parser-syntax-check-expected.txt: 11 * fast/js/script-tests/parser-syntax-check.js: 12 1 13 2011-06-15 Stephen White <senorblanco@chromium.org> 2 14 -
trunk/LayoutTests/fast/js/parser-syntax-check-expected.txt
r76148 r88974 550 550 PASS Invalid: "'use strict'; (function __proto__(){})" 551 551 PASS Invalid: "function f() { 'use strict'; (function __proto__(){}) }" 552 PASS Valid: "if (0) $foo; " 553 PASS Valid: "function f() { if (0) $foo; }" 554 PASS Valid: "if (0) _foo; " 555 PASS Valid: "function f() { if (0) _foo; }" 556 PASS Valid: "if (0) foo$; " 557 PASS Valid: "function f() { if (0) foo$; }" 558 PASS Valid: "if (0) foo_; " 559 PASS Valid: "function f() { if (0) foo_; }" 560 PASS Valid: "if (0) obj.$foo; " 561 PASS Valid: "function f() { if (0) obj.$foo; }" 562 PASS Valid: "if (0) obj._foo; " 563 PASS Valid: "function f() { if (0) obj._foo; }" 564 PASS Valid: "if (0) obj.foo$; " 565 PASS Valid: "function f() { if (0) obj.foo$; }" 566 PASS Valid: "if (0) obj.foo_; " 567 PASS Valid: "function f() { if (0) obj.foo_; }" 568 PASS Valid: "if (0) obj.foo\u03bb; " 569 PASS Valid: "function f() { if (0) obj.foo\u03bb; }" 552 570 PASS successfullyParsed is true 553 571 -
trunk/LayoutTests/fast/js/script-tests/parser-syntax-check.js
r76148 r88974 352 352 invalid("'use strict'; (function __proto__(){})") 353 353 354 valid("if (0) $foo; ") 355 valid("if (0) _foo; ") 356 valid("if (0) foo$; ") 357 valid("if (0) foo_; ") 358 valid("if (0) obj.$foo; ") 359 valid("if (0) obj._foo; ") 360 valid("if (0) obj.foo$; ") 361 valid("if (0) obj.foo_; ") 362 valid("if (0) obj.foo\\u03bb; ") 363 354 364 var successfullyParsed = true; -
trunk/Source/JavaScriptCore/ChangeLog
r88962 r88974 1 2011-06-15 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Darin Adler. 4 5 REGRESSION (r88719): 5by5.tv schedule is not visible 6 https://bugs.webkit.org/show_bug.cgi?id=62720 7 8 Problem here is that the lexer wasn't considering '$' to be 9 a valid character in an identifier. 10 11 * parser/Lexer.h: 12 (JSC::Lexer::lexExpectIdentifier): 13 1 14 2011-06-15 Oliver Hunt <oliver@apple.com> 2 15 -
trunk/Source/JavaScriptCore/parser/Lexer.h
r88724 r88974 203 203 // Here's the shift 204 204 if (ptr < end) { 205 if ( !WTF::isASCII(*ptr) || (*ptr == '\\') || (*ptr == '_'))205 if ((!WTF::isASCII(*ptr)) || (*ptr == '\\') || (*ptr == '_') || (*ptr == '$')) 206 206 goto slowCase; 207 207 m_current = *ptr;
Note: See TracChangeset
for help on using the changeset viewer.