From 344612b592394b37ef6edf5caff0fd316cce5e62 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 23 Mar 2020 18:46:33 -0400 Subject: [PATCH] Fix: Proxy set, if trap is undefined (#2536) --- test/built-ins/Proxy/set/trap-is-undefined.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/built-ins/Proxy/set/trap-is-undefined.js b/test/built-ins/Proxy/set/trap-is-undefined.js index 2a668a6356..158bff47f9 100644 --- a/test/built-ins/Proxy/set/trap-is-undefined.js +++ b/test/built-ins/Proxy/set/trap-is-undefined.js @@ -1,11 +1,12 @@ // Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- -es6id: 9.5.9 +esid: sec-proxy-object-internal-methods-and-internal-slots-set-p-v-receiver description: > [[Set]] ( P, V, Receiver) - 8. If trap is undefined, then return target.[[Set]](P, V, Receiver). + 7. If trap is undefined, then + a. Return ? target.[[Set]](P, V, Receiver) features: [Proxy] ---*/ @@ -14,9 +15,9 @@ var target = { attr: 1 }; var p = new Proxy(target, { - get: undefined + set: undefined }); -p.attr = 1; +p.attr = 2; -assert.sameValue(target.attr, 1); +assert.sameValue(target.attr, 2);