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

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
Index: test/codegen/expect/names.js
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js
index ac268d4e3510a09877f867f412fb96342f41d45c..df6ed236b00ac3a42ac31cbac30ba94f4773f1b7 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 = {}));

Powered by Google App Engine
This is Rietveld 408576698