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

Side by Side Diff: test/codegen/expect/async_helper.js

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen 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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/async_helper/async_helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('async_helper', null, /* Imports */[ 1 dart_library.library('async_helper', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 exports._initialized = false; 8 exports._initialized = false;
9 let _Action0 = dart.typedef('_Action0', () => dart.functionType(dart.void, []) ); 9 const _Action0 = dart.typedef('_Action0', () => dart.functionType(dart.void, [ ]));
10 exports._onAsyncEnd = null; 10 exports._onAsyncEnd = null;
11 exports._asyncLevel = 0; 11 exports._asyncLevel = 0;
12 function _buildException(msg) { 12 function _buildException(msg) {
13 return core.Exception.new(`Fatal: ${msg}. This is most likely a bug in your test.`); 13 return core.Exception.new(`Fatal: ${msg}. This is most likely a bug in your test.`);
14 } 14 }
15 dart.fn(_buildException, core.Exception, [core.String]); 15 dart.fn(_buildException, core.Exception, [core.String]);
16 function asyncTestInitialize(callback) { 16 function asyncTestInitialize(callback) {
17 exports._asyncLevel = 0; 17 exports._asyncLevel = 0;
18 exports._initialized = false; 18 exports._initialized = false;
19 exports._onAsyncEnd = callback; 19 exports._onAsyncEnd = callback;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 dart.dsend(f(), 'then', asyncSuccess); 64 dart.dsend(f(), 'then', asyncSuccess);
65 } 65 }
66 dart.fn(asyncTest, dart.void, [dart.functionType(dart.dynamic, [])]); 66 dart.fn(asyncTest, dart.void, [dart.functionType(dart.dynamic, [])]);
67 // Exports: 67 // Exports:
68 exports.asyncTestInitialize = asyncTestInitialize; 68 exports.asyncTestInitialize = asyncTestInitialize;
69 exports.asyncStart = asyncStart; 69 exports.asyncStart = asyncStart;
70 exports.asyncEnd = asyncEnd; 70 exports.asyncEnd = asyncEnd;
71 exports.asyncSuccess = asyncSuccess; 71 exports.asyncSuccess = asyncSuccess;
72 exports.asyncTest = asyncTest; 72 exports.asyncTest = asyncTest;
73 }); 73 });
OLDNEW
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/async_helper/async_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698