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

Issue 2695713014: [api] Use CHECK instead of DCHECK for IsModule tests in ScriptCompiler (Closed)

Created:
3 years, 10 months ago by adamk
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[api] Use CHECK instead of DCHECK for IsModule tests in ScriptCompiler This is such a mis-use of the API that it's important to fail fast: this patch was prompted by a bug report from a Node.js developer trying to use CompileModule() without passing a properly module-tagged ScriptOrigin. R=jochen@chromium.org, neis@chromium.org BUG=v8:1569 Review-Url: https://codereview.chromium.org/2695713014 Cr-Commit-Position: refs/heads/master@{#43354} Committed: https://chromium.googlesource.com/v8/v8/+/abb9eda40d2500238432ed2c64c4491ffbaa9263

Patch Set 1 #

Patch Set 2 : Use ApiCheck #

Patch Set 3 : Fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M src/api.cc View 1 2 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
adamk
3 years, 10 months ago (2017-02-16 20:36:41 UTC) #1
Bradley Farias
On 2017/02/16 20:36:41, adamk wrote: yay!
3 years, 10 months ago (2017-02-16 20:37:25 UTC) #4
neis
lgtm
3 years, 10 months ago (2017-02-17 09:40:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695713014/1
3 years, 10 months ago (2017-02-17 09:40:32 UTC) #9
jochen (gone - plz use gerrit)
what about making this an ApiCheck so you can also print something meaningfully to help ...
3 years, 10 months ago (2017-02-17 09:44:29 UTC) #11
adamk
Good idea, switched to ApiCheck.
3 years, 10 months ago (2017-02-17 19:16:42 UTC) #12
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-20 09:46:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695713014/40001
3 years, 10 months ago (2017-02-21 17:59:01 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 18:25:26 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/abb9eda40d2500238432ed2c64c4491ffba...

Powered by Google App Engine
This is Rietveld 408576698