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

Unified Diff: test/codegen/expect/names.js

Issue 1034273003: fix for static methods and names banned in strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/server_mode/html_input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/names.js
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js
index ac268d4e3510a09877f867f412fb96342f41d45c..9970709eb9e087a3d2a850ef81cbcb584264c464 100644
--- a/test/codegen/expect/names.js
+++ b/test/codegen/expect/names.js
@@ -12,13 +12,26 @@ var names;
function _foo() {
return 456;
}
+ class Frame extends core.Object {
+ Frame$caller(arguments$) {
+ this.arguments = arguments$;
+ }
+ static ['callee*']() {
+ return null;
+ }
+ }
+ dart.defineNamedConstructor(Frame, 'caller*');
// Function main: () → dynamic
function main() {
core.print(exports.exports);
core.print(new Foo()._foo());
core.print(_foo());
+ core.print(new Frame.caller(new List.from([1, 2, 3])));
+ let eval$ = Frame['callee*'];
+ core.print(eval$);
}
// Exports:
exports.Foo = Foo;
+ exports.Frame = Frame;
exports.main = main;
})(names || (names = {}));
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/server_mode/html_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698