Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1631)

Unified Diff: test/mjsunit/object-literal.js

Issue 2510743002: [interpreter] Bytecode for StaDataPropertyInLiteral. (Closed)
Patch Set: Delete double line. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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]);
+})();

Powered by Google App Engine
This is Rietveld 408576698