a77323416a
GetPropertyWithReceiver is similar to GetProperty, except that additional receiver parameter is used in TryPrototypeChainLookup to support GetPropertyWithReceiver stub. We only use this stub in ProxyGetProperty builtin for now. Bug: v8:8958 Change-Id: Ied60e4f6ee6e09bca2f161048b481a0bf37a78a7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1676879 Commit-Queue: Z Nguyen-Huu <duongn@microsoft.com> Reviewed-by: Igor Sheludko <ishell@chromium.org> Reviewed-by: Maya Lekova <mslekova@chromium.org> Cr-Commit-Position: refs/heads/master@{#62431}
22 lines
479 B
JavaScript
22 lines
479 B
JavaScript
// Copyright 2017 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.
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
// Check that the receiver of Runtime_GetPropertyWithReceiver can be
|
|
// a plain JS value.
|
|
|
|
var values = [
|
|
10,
|
|
false,
|
|
"test"
|
|
];
|
|
|
|
for (let val of values) {
|
|
var proto = Object.getPrototypeOf(val);
|
|
|
|
var proxy = new Proxy({}, {});
|
|
Object.setPrototypeOf(proxy, proto);
|
|
}
|