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

Issue 778063002: Implement correct semantics of Boolean Conversion (Closed)

Created:
6 years ago by hausner
Modified:
6 years ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement correct semantics of Boolean Conversion When converting null to a boolean value, throw an AssertionError rather than a TypeError. Fixes issue 21279. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=42145

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -41 lines) Patch
M runtime/lib/errors_patch.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 2 chunks +20 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 6 chunks +6 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 2 chunks +13 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 2 chunks +13 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 2 chunks +13 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 2 chunks +13 lines, -4 lines 0 comments Download
A tests/language/bool_check_test.dart View 1 1 chunk +54 lines, -0 lines 0 comments Download
M tests/language/vm/type_vm_test.dart View 1 2 10 chunks +14 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
hausner
6 years ago (2014-12-05 00:38:11 UTC) #2
srdjan
lgtm https://codereview.chromium.org/778063002/diff/20001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/778063002/diff/20001/runtime/vm/code_generator.cc#newcode58 runtime/vm/code_generator.cc:58: DECLARE_FLAG(bool, enable_asserts); Please order alphabetically. https://codereview.chromium.org/778063002/diff/20001/runtime/vm/code_generator.cc#newcode574 runtime/vm/code_generator.cc:574: String::New("Failed ...
6 years ago (2014-12-05 00:49:28 UTC) #3
hausner
https://codereview.chromium.org/778063002/diff/20001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/778063002/diff/20001/runtime/vm/code_generator.cc#newcode58 runtime/vm/code_generator.cc:58: DECLARE_FLAG(bool, enable_asserts); On 2014/12/05 00:49:28, srdjan wrote: > Please ...
6 years ago (2014-12-05 20:36:10 UTC) #4
hausner
6 years ago (2014-12-05 20:36:45 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as r42145 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698