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

Issue 2983523002: Check for null when getting the extension type. (Closed)

Created:
3 years, 5 months ago by Leaf
Modified:
3 years, 5 months ago
Reviewers:
vsm, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Check for null when getting the extension type. isJsInterop can call this with null. BUG= R=vsm@google.com Committed: https://github.com/dart-lang/sdk/commit/4f7fa8a930cf7572ff42b85e5b00325e35326499

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/classes.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
Leaf
3 years, 5 months ago (2017-07-13 23:45:56 UTC) #2
vsm
lgtm
3 years, 5 months ago (2017-07-13 23:47:16 UTC) #3
Leaf
Committed patchset #1 (id:1) manually as 4f7fa8a930cf7572ff42b85e5b00325e35326499 (presubmit successful).
3 years, 5 months ago (2017-07-13 23:48:38 UTC) #5
Jennifer Messerly
hmm, it might be better to figure out who's calling this with null, otherwise this ...
3 years, 5 months ago (2017-07-14 08:13:26 UTC) #7
Leaf
3 years, 5 months ago (2017-07-14 20:14:35 UTC) #8
Message was sent while issue was closed.
On 2017/07/14 08:13:26, Jennifer Messerly wrote:
> hmm, it might be better to figure out who's calling this with null, otherwise
> this will slow down several potentially hot code paths

Yeah, that was the other fix I considered, but I worried about robustness.  If
we want to make this an invariant that it's never called with null I should be
able to track down all uses.  I'm not really convinced the null check is going
to matter relative to the cost of the helper call and the lookup of a missing
symbol, but doesn't hurt to keep it clean.  I'll take a look at it.

Powered by Google App Engine
This is Rietveld 408576698