-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
return x != ""; // return false; suppress unused variable warning | ||
} catch (e) { | ||
var checked = false; | ||
assert(() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not checking the same thing.
The code as originally written:
- in Dart 1 was checking for --checked.
- in Dart 2 was checking for --omit-implicit-checks when compiled with dart2js
Now it is checking for --enable-asserts.
So I expect a performance regression on 'production' apps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rakudrama – suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And document it better.
No description provided.