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

Issue 13842019: - Check for error when creating the source string. (Closed)

Created:
7 years, 8 months ago by Ivan Posva
Modified:
7 years, 8 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Check for error when creating the source string. Committed: https://code.google.com/p/dart/source/detail?r=21813

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M runtime/bin/dartutils.cc View 1 chunk +3 lines, -0 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
7 years, 8 months ago (2013-04-22 12:12:03 UTC) #1
Mads Ager (google)
LGTM with a question. https://codereview.chromium.org/13842019/diff/1/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/13842019/diff/1/runtime/bin/dartutils.cc#newcode397 runtime/bin/dartutils.cc:397: return Dart_LoadScript(resolved_script_uri, source, 0, 0); ...
7 years, 8 months ago (2013-04-22 13:05:41 UTC) #2
Ivan Posva
https://codereview.chromium.org/13842019/diff/1/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/13842019/diff/1/runtime/bin/dartutils.cc#newcode397 runtime/bin/dartutils.cc:397: return Dart_LoadScript(resolved_script_uri, source, 0, 0); On 2013/04/22 13:05:41, Mads ...
7 years, 8 months ago (2013-04-22 13:12:42 UTC) #3
Ivan Posva
Committed patchset #1 manually as r21813 (presubmit successful).
7 years, 8 months ago (2013-04-22 13:13:05 UTC) #4
Mads Ager (google)
7 years, 8 months ago (2013-04-22 13:13:48 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/13842019/diff/1/runtime/bin/dartutils.cc
File runtime/bin/dartutils.cc (right):

https://codereview.chromium.org/13842019/diff/1/runtime/bin/dartutils.cc#newc...
runtime/bin/dartutils.cc:397: return Dart_LoadScript(resolved_script_uri,
source, 0, 0);
On 2013/04/22 13:12:42, Ivan Posva wrote:
> On 2013/04/22 13:05:41, Mads Ager wrote:
> > I thought all of the APIs had the property that they return an error is one
of
> > the arguments is an error. I believe that is the case with most of the other
> > APIs, should we make that the case for LoadScript as well?
> 
> Dart_LoadScript does return an error if it gets unexpected parameters, but at
> that point the more descriptive error you would get from
Dart_NewStringFromUTF8
> is discarded.

I see. Thanks! :)

Powered by Google App Engine
This is Rietveld 408576698