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

Issue 2568313002: Implement messages in assert() in dev_compiler. (Closed)

Created:
4 years ago by Bob Nystrom
Modified:
4 years ago
Reviewers:
vsm, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Implement messages in assert() in dev_compiler. Fix #27342. R=jmesserly@google.com Committed: https://github.com/dart-lang/sdk/commit/b900a3962062144c2ee7fd051f6c934918e9323b

Patch Set 1 #

Total comments: 12

Patch Set 2 : Format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -77 lines) Patch
M pkg/dev_compiler/lib/js/amd/dart_sdk.js View 1 4 chunks +36 lines, -16 lines 0 comments Download
M pkg/dev_compiler/lib/js/common/dart_sdk.js View 1 4 chunks +36 lines, -16 lines 0 comments Download
M pkg/dev_compiler/lib/js/es6/dart_sdk.js View 1 4 chunks +36 lines, -16 lines 0 comments Download
M pkg/dev_compiler/lib/js/legacy/dart_sdk.js View 1 4 chunks +36 lines, -16 lines 0 comments Download
M pkg/dev_compiler/lib/sdk/ddc_sdk.sum View 1 Binary file 0 comments Download
M pkg/dev_compiler/lib/src/compiler/code_generator.dart View 1 1 chunk +9 lines, -3 lines 0 comments Download
M pkg/dev_compiler/lib/src/compiler/command.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart View 1 2 chunks +4 lines, -3 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart View 1 chunk +12 lines, -4 lines 0 comments Download
M pkg/dev_compiler/tool/input_sdk/private/js_helper.dart View 1 chunk +11 lines, -0 lines 0 comments Download
A tests/language_strong/assert_with_message_test.dart View 1 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Bob Nystrom
The main missing piece is passing a function as the first argument: assert(() => false, ...
4 years ago (2016-12-12 22:24:23 UTC) #3
Jennifer Messerly
Nice! https://codereview.chromium.org/2568313002/diff/1/pkg/dev_compiler/lib/src/compiler/code_generator.dart File pkg/dev_compiler/lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2568313002/diff/1/pkg/dev_compiler/lib/src/compiler/code_generator.dart#newcode3825 pkg/dev_compiler/lib/src/compiler/code_generator.dart:3825: return _callHelperStatement('assertMessage(#, () => #);', i'd prefer this ...
4 years ago (2016-12-12 22:36:02 UTC) #4
Bob Nystrom
https://codereview.chromium.org/2568313002/diff/1/pkg/dev_compiler/lib/src/compiler/code_generator.dart File pkg/dev_compiler/lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/2568313002/diff/1/pkg/dev_compiler/lib/src/compiler/code_generator.dart#newcode3825 pkg/dev_compiler/lib/src/compiler/code_generator.dart:3825: return _callHelperStatement('assertMessage(#, () => #);', On 2016/12/12 22:36:01, Jennifer ...
4 years ago (2016-12-13 19:29:51 UTC) #5
Jennifer Messerly
LGTM!
4 years ago (2016-12-13 20:10:27 UTC) #6
Bob Nystrom
4 years ago (2016-12-13 21:32:02 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
b900a3962062144c2ee7fd051f6c934918e9323b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698