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

Unified Diff: test/mjsunit/es6/function-name.js

Issue 2313723005: [parser] Simplify parse-time function name inference for properties (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « src/parsing/preparser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/function-name.js
diff --git a/test/mjsunit/es6/function-name.js b/test/mjsunit/es6/function-name.js
index 0fcab441ed6ea6bc173c37159a02bc6226d0f12c..3b0a6fcacbad78efd3069bf41b966c74bc46ba79 100644
--- a/test/mjsunit/es6/function-name.js
+++ b/test/mjsunit/es6/function-name.js
@@ -73,6 +73,8 @@
static 43() { }
get 44() { }
set 44(val) { }
+ static get constructor() { }
+ static set constructor(val) { }
};
assertEquals('a', C.prototype.a.name);
@@ -85,6 +87,9 @@
var descriptor = Object.getOwnPropertyDescriptor(C.prototype, '44');
assertEquals('get 44', descriptor.get.name);
assertEquals('set 44', descriptor.set.name);
+ var descriptor = Object.getOwnPropertyDescriptor(C, 'constructor');
+ assertEquals('get constructor', descriptor.get.name);
+ assertEquals('set constructor', descriptor.set.name);
})();
(function testComputedProperties() {
« no previous file with comments | « src/parsing/preparser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698