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

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

Issue 1752193002: Add a few more known non-null cases (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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 | « lib/runtime/dart/_internal.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_isolate_helper.js
diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
index eec8f7a851eaff9b511e6d589b16b5488b1a1bd8..af6ce9149f83be2cd711fd176cc491a1e84de98e 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -621,7 +621,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
}
handleUncaughtError(error, stackTrace) {
if (dart.notNull(this.errorPorts.isEmpty)) {
- if (dart.notNull(this.errorsAreFatal) && dart.notNull(core.identical(this, exports._globalState.rootContext))) {
+ if (dart.notNull(this.errorsAreFatal) && core.identical(this, exports._globalState.rootContext)) {
return;
}
if (self.console && self.console.error) {
@@ -651,7 +651,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
this.handleUncaughtError(e, s);
if (dart.notNull(this.errorsAreFatal)) {
this.kill();
- if (dart.notNull(core.identical(this, exports._globalState.rootContext))) {
+ if (core.identical(this, exports._globalState.rootContext)) {
throw e;
}
}
@@ -1487,7 +1487,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
return hash;
}
['=='](other) {
- if (dart.notNull(core.identical(other, this))) return true;
+ if (core.identical(other, this)) return true;
if (dart.is(other, CapabilityImpl)) {
return core.identical(this[_id], other[_id]);
}
« no previous file with comments | « lib/runtime/dart/_internal.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698