09d4ba01ee
Plus a bit of CSA typification. Bug: v8:7725 Change-Id: I43fea4a4c0739f9c24d84035816b046e742372ee Reviewed-on: https://chromium-review.googlesource.com/1051653 Reviewed-by: Marja Hölttä <marja@chromium.org> Commit-Queue: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/master@{#53102}
12 lines
414 B
JavaScript
12 lines
414 B
JavaScript
// 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.
|
|
|
|
var proxy = new Proxy({}, {});
|
|
|
|
Object.assign(proxy, { b: "boom", a: "ah", o: "ouch" });
|
|
assertEquals(["b", "a", "o"], Object.getOwnPropertyNames(proxy));
|
|
assertEquals("boom", proxy.b);
|
|
assertEquals("ah", proxy.a);
|
|
assertEquals("ouch", proxy.o);
|