Commit e602c90a authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

Properly set enumeration order for accessor properties in class literals.

Bug: chromium:848165
Change-Id: I1ec18bf12f53c24f388dbd529fe62e990fbc8783
Reviewed-on: https://chromium-review.googlesource.com/1104175Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53793}
parent 6e47d31f
......@@ -260,8 +260,8 @@ void AddToDictionaryTemplate(Isolate* isolate, Handle<Dictionary> dictionary,
} else {
Handle<AccessorPair> pair(isolate->factory()->NewAccessorPair());
pair->set(component, value);
PropertyDetails details(kAccessor, DONT_ENUM,
PropertyCellType::kNoCell);
PropertyDetails details(kAccessor, DONT_ENUM, PropertyCellType::kNoCell,
enum_order);
dictionary->DetailsAtPut(entry, details);
dictionary->ValueAtPut(entry, *pair);
}
......
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
class cls0 {
static get length(){ return 42; };
static get [1](){ return 21; };
};
Object.defineProperty(cls0, "length", {value:'1'});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment