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

Unified Diff: test/codegen/expect/expect/expect.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/codegen/expect/expect.js ('k') | test/codegen/expect/extensions.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/expect/expect.js
diff --git a/test/codegen/expect/expect/expect.js b/test/codegen/expect/expect/expect.js
index 68c2cd597e8e7a7e22b787968705994614df5632..6e4ebe4b4ef7004558490120a18431d5dd9fef17 100644
--- a/test/codegen/expect/expect/expect.js
+++ b/test/codegen/expect/expect/expect.js
@@ -266,7 +266,7 @@ dart_library.library('expect', null, /* Imports */[
expect._CheckExceptionFn = dart.typedef('_CheckExceptionFn', () => dart.functionType(core.bool, [dart.dynamic]));
expect._Nullary = dart.typedef('_Nullary', () => dart.functionType(dart.dynamic, []));
expect.ExpectException = class ExpectException extends core.Object {
- ExpectException(message) {
+ new(message) {
this.message = message;
}
toString() {
@@ -275,28 +275,28 @@ dart_library.library('expect', null, /* Imports */[
};
expect.ExpectException[dart.implements] = () => [core.Exception];
dart.setSignature(expect.ExpectException, {
- constructors: () => ({ExpectException: [expect.ExpectException, [core.String]]})
+ constructors: () => ({new: [expect.ExpectException, [core.String]]})
});
expect.NoInline = class NoInline extends core.Object {
- NoInline() {
+ new() {
}
};
dart.setSignature(expect.NoInline, {
- constructors: () => ({NoInline: [expect.NoInline, []]})
+ constructors: () => ({new: [expect.NoInline, []]})
});
expect.TrustTypeAnnotations = class TrustTypeAnnotations extends core.Object {
- TrustTypeAnnotations() {
+ new() {
}
};
dart.setSignature(expect.TrustTypeAnnotations, {
- constructors: () => ({TrustTypeAnnotations: [expect.TrustTypeAnnotations, []]})
+ constructors: () => ({new: [expect.TrustTypeAnnotations, []]})
});
expect.AssumeDynamic = class AssumeDynamic extends core.Object {
- AssumeDynamic() {
+ new() {
}
};
dart.setSignature(expect.AssumeDynamic, {
- constructors: () => ({AssumeDynamic: [expect.AssumeDynamic, []]})
+ constructors: () => ({new: [expect.AssumeDynamic, []]})
});
// Exports:
exports.expect = expect;
« no previous file with comments | « test/codegen/expect/expect.js ('k') | test/codegen/expect/extensions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698