mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1401105 - Fix the failure of keypath-special-identifiers.htm. r=baku
--HG-- extra : rebase_source : 5b741f3c061c2e07cc7e4dc2caa7f772b513ad4c
This commit is contained in:
parent
3bcb820ee6
commit
6ad441ca98
@ -104,10 +104,10 @@ GetJSValFromKeyPathString(JSContext* aCx,
|
||||
bool hasProp;
|
||||
if (!targetObject) {
|
||||
// We're still walking the chain of existing objects
|
||||
// http://w3c.github.io/IndexedDB/#dfn-evaluate-a-key-path-on-a-value
|
||||
// http://w3c.github.io/IndexedDB/#evaluate-a-key-path-on-a-value
|
||||
// step 4 substep 1: check for .length on a String value.
|
||||
if (currentVal.isString() && !tokenizer.hasMoreTokens() &&
|
||||
token.EqualsLiteral("length") && aOptions == DoNotCreateProperties) {
|
||||
token.EqualsLiteral("length")) {
|
||||
aKeyJSVal->setNumber(double(JS_GetStringLength(currentVal.toString())));
|
||||
break;
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
[keypath-special-identifiers.htm]
|
||||
type: testharness
|
||||
[Type: String, identifier: length]
|
||||
expected: FAIL
|
||||
|
Loading…
x
Reference in New Issue
Block a user