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

Unified Diff: lib/runtime/dart/isolate.js

Issue 1524843002: JS: Format if statements with no else on a single line (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebased 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 | « lib/runtime/dart/html_common.js ('k') | lib/runtime/dart/js.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/isolate.js
diff --git a/lib/runtime/dart/isolate.js b/lib/runtime/dart/isolate.js
index 7fbf20a752d57fcb73350161f7b84aa910c3f8b6..202273713ace4034b4ab0a48a2a38dfbd2a98ea2 100644
--- a/lib/runtime/dart/isolate.js
+++ b/lib/runtime/dart/isolate.js
@@ -52,8 +52,7 @@ dart_library.library('dart/isolate', null, /* Imports */[
static spawnUri(uri, args, message, opts) {
let paused = opts && 'paused' in opts ? opts.paused : false;
let packageRoot = opts && 'packageRoot' in opts ? opts.packageRoot : null;
- if (packageRoot != null)
- dart.throw(new core.UnimplementedError("packageRoot"));
+ if (packageRoot != null) dart.throw(new core.UnimplementedError("packageRoot"));
try {
if (dart.is(args, core.List)) {
for (let i = 0; dart.notNull(i) < dart.notNull(args[dartx.length]); i = dart.notNull(i) + 1) {
@@ -72,10 +71,8 @@ dart_library.library('dart/isolate', null, /* Imports */[
}
pause(resumeCapability) {
- if (resumeCapability === void 0)
- resumeCapability = null;
- if (resumeCapability == null)
- resumeCapability = Capability.new();
+ if (resumeCapability === void 0) resumeCapability = null;
+ if (resumeCapability == null) resumeCapability = Capability.new();
this[_pause](resumeCapability);
return resumeCapability;
}
@@ -112,13 +109,11 @@ dart_library.library('dart/isolate', null, /* Imports */[
this.controlPort.send(message);
}
kill(priority) {
- if (priority === void 0)
- priority = Isolate.BEFORE_NEXT_EVENT;
+ if (priority === void 0) priority = Isolate.BEFORE_NEXT_EVENT;
this.controlPort.send(["kill", this.terminateCapability, priority]);
}
ping(responsePort, pingType) {
- if (pingType === void 0)
- pingType = Isolate.IMMEDIATE;
+ if (pingType === void 0) pingType = Isolate.IMMEDIATE;
let message = core.List.new(3);
message[dartx.set](0, "ping");
message[dartx.set](1, responsePort);
@@ -205,8 +200,7 @@ dart_library.library('dart/isolate', null, /* Imports */[
});
class RawReceivePort extends core.Object {
static new(handler) {
- if (handler === void 0)
- handler = null;
+ if (handler === void 0) handler = null;
return new _isolate_helper.RawReceivePortImpl(handler);
}
}
« no previous file with comments | « lib/runtime/dart/html_common.js ('k') | lib/runtime/dart/js.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698