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

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

Issue 1965213003: simplify constructors, fixes #564 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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/browser/runtime_tests.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/BenchmarkBase.js
diff --git a/test/codegen/expect/BenchmarkBase.js b/test/codegen/expect/BenchmarkBase.js
index 9dc16a68bfc30493d6447533bab69c504276edf3..8f200b5b8d8d75a844f5022385346afbc4912b64 100644
--- a/test/codegen/expect/BenchmarkBase.js
+++ b/test/codegen/expect/BenchmarkBase.js
@@ -33,7 +33,7 @@ dart_library.library('BenchmarkBase', null, /* Imports */[
names: ['equals', 'listEquals']
});
BenchmarkBase$.BenchmarkBase = class BenchmarkBase extends core.Object {
- BenchmarkBase(name) {
+ new(name) {
this.name = name;
}
run() {}
@@ -77,7 +77,7 @@ dart_library.library('BenchmarkBase', null, /* Imports */[
}
};
dart.setSignature(BenchmarkBase$.BenchmarkBase, {
- constructors: () => ({BenchmarkBase: [BenchmarkBase$.BenchmarkBase, [core.String]]}),
+ constructors: () => ({new: [BenchmarkBase$.BenchmarkBase, [core.String]]}),
methods: () => ({
run: [dart.void, []],
warmup: [dart.void, []],
« no previous file with comments | « test/browser/runtime_tests.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698