Bug 1401105 - Fix the failure of keypath-special-identifiers.htm. r=baku

--HG--
extra : rebase_source : 5b741f3c061c2e07cc7e4dc2caa7f772b513ad4c
This commit is contained in:
Bevis Tseng 2017-09-19 15:52:48 +08:00
parent 3bcb820ee6
commit 6ad441ca98
2 changed files with 2 additions and 7 deletions

View File

@ -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;
}

View File

@ -1,5 +0,0 @@
[keypath-special-identifiers.htm]
type: testharness
[Type: String, identifier: length]
expected: FAIL