IndexedDB: Key paths should support non-ASCII identifiers
authorjsbell <jsbell@chromium.org>
Mon, 15 Oct 2012 21:22:08 +0000 (21:22 +0000)
committerjsbell <jsbell@chromium.org>
Mon, 15 Oct 2012 21:22:08 +0000 (21:22 +0000)
commite719ff048b74e10dc2daac5e0066735715238595
tree4ce99b0d51598c535864ef6313eae9527285390c
parentb2a3f267127747d6000cc3aae64d1a5c9c2bb8eb
IndexedDB: Key paths should support non-ASCII identifiers
https://bugs.webkit.org/show_bug.cgi?id=98814

Reviewed by Kentaro Hara.

Source/WebCore:

Update the parser for key paths to use the unicode classes from
the IdentifierName production in ECMA-262.

Test: storage/indexeddb/keypath-basics.html

* Modules/indexeddb/IDBKeyPath.cpp:
(WebCore):
(WebCore::IDBKeyPathLexer::lexIdentifier):

LayoutTests:

Test representative characters from various Unicode character classes
as valid (or invalid) identifier lead and trailing characters.

* storage/indexeddb/keypath-basics-expected.txt:
* storage/indexeddb/resources/keypath-basics.js:
(testValidKeyPaths):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/keypath-basics-expected.txt
LayoutTests/storage/indexeddb/resources/keypath-basics.js
Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/IDBKeyPath.cpp