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

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

Issue 1507343013: Run tests on Chrome stable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years 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/constructors.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index c91bd01c78568197900e508479a5f36ccbabd09c..660be8b4998fcb40ad6fec2cc4adc519d089ff38 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -26,10 +26,12 @@ dart_library.library('methods', null, /* Imports */[
b = 0;
return b;
}
- w(a, {b = null} = {}) {
+ w(a, opts) {
+ let b = opts && 'b' in opts ? opts.b : null;
return dart.asInt(dart.notNull(a) + dart.notNull(b));
}
- clashWithObjectProperty({constructor = null} = Object.create(null)) {
+ clashWithObjectProperty(opts) {
+ let constructor = opts && 'constructor' in opts ? opts.constructor : null;
return constructor;
}
clashWithJsReservedName(opts) {
« no previous file with comments | « test/codegen/expect/constructors.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698