Index: test/mjsunit/object-literal.js |
diff --git a/test/mjsunit/object-literal.js b/test/mjsunit/object-literal.js |
index 6aa64bcb74166a7e0d8c696815815fd36e0373d8..6e52dd31b9b0cebddcb5ea80338a07561d64d198 100644 |
--- a/test/mjsunit/object-literal.js |
+++ b/test/mjsunit/object-literal.js |
@@ -261,7 +261,6 @@ TestNumericNamesSetter(['1.2', '1.3'], { |
set 1.30(_) {; } |
}); |
- |
(function TestPrototypeInObjectLiteral() { |
// The prototype chain should not be used if the definition |
// happens in the object literal. |
@@ -302,3 +301,11 @@ TestNumericNamesSetter(['1.2', '1.3'], { |
var l = new Proxy({[prop]: 'my value'}, handler); |
assertEquals('my value', l[prop]); |
})(); |
+ |
+(function TestWithoutProxyWithDefinitionInObjectLiteral() { |
+ |
+ const prop = 'a'; |
+ |
+ var l = {[prop]: 'my value'}; |
+ assertEquals('my value', l[prop]); |
+})(); |