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

Issue 2839563002: [ES6 modules] Return previous error when an instantiation is reattempt. (Closed)

Created:
3 years, 8 months ago by kouhei (in TOK)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis, module-dev_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ES6 modules] Return previous error when an instantiation is reattempt. Before this CL, when instantiation was reattempt for previously errored module, ModuleTreeLinker::Instantiate() crashed. This CL updates the code to follow whatwg/html update: https://github.com/whatwg/html/pull/2559 so that we rethrow previous error when instantiation is reattempt. TEST=webkit_unit_test --gtest_filter=ModuleTreeLinkerTest.FetchTreePreviousInstantiationFailure BUG=594639, 714521 Review-Url: https://codereview.chromium.org/2839563002 Cr-Commit-Position: refs/heads/master@{#467882} Committed: https://chromium.googlesource.com/chromium/src/+/321b6ea1a1e2f392c629e2f074ae509a3aaefc42

Patch Set 1 #

Total comments: 12

Patch Set 2 : hiroshige #

Patch Set 3 : compile #

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -27 lines) Patch
M third_party/WebKit/Source/core/dom/Modulator.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ModulatorImpl.cpp View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ModuleScript.h View 1 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinker.cpp View 1 3 chunks +31 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/loader/modulescript/ModuleTreeLinkerTest.cpp View 1 2 3 11 chunks +64 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/DummyModulator.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
kouhei (in TOK)
3 years, 8 months ago (2017-04-24 07:04:51 UTC) #2
kouhei (in TOK)
cc: +module-dev
3 years, 8 months ago (2017-04-24 09:46:05 UTC) #9
kouhei (in TOK)
cc: +module-dev
3 years, 8 months ago (2017-04-24 09:46:07 UTC) #10
yhirano
https://github.com/whatwg/html/pull/2559 It seems domenic expects you to write a WPT, right? Should it be included ...
3 years, 8 months ago (2017-04-24 10:06:47 UTC) #11
kouhei (in TOK)
On 2017/04/24 10:06:47, yhirano wrote: > https://github.com/whatwg/html/pull/2559 > > It seems domenic expects you to ...
3 years, 8 months ago (2017-04-25 20:31:39 UTC) #12
hiroshige
Basically looks good. https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h File third_party/WebKit/Source/core/dom/ModuleScript.h (right): https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h#newcode59 third_party/WebKit/Source/core/dom/ModuleScript.h:59: v8::Local<v8::Value> CreateInstantiationError(v8::Isolate* isolate) const { ModulatorImpl::GetInstantiationError() ...
3 years, 7 months ago (2017-04-27 22:56:40 UTC) #13
kouhei (in TOK)
https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h File third_party/WebKit/Source/core/dom/ModuleScript.h (right): https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h#newcode59 third_party/WebKit/Source/core/dom/ModuleScript.h:59: v8::Local<v8::Value> CreateInstantiationError(v8::Isolate* isolate) const { On 2017/04/27 22:56:40, hiroshige ...
3 years, 7 months ago (2017-04-28 00:55:09 UTC) #14
hiroshige
lgtm with comments. https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h File third_party/WebKit/Source/core/dom/ModuleScript.h (right): https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h#newcode59 third_party/WebKit/Source/core/dom/ModuleScript.h:59: v8::Local<v8::Value> CreateInstantiationError(v8::Isolate* isolate) const { On ...
3 years, 7 months ago (2017-04-28 01:28:35 UTC) #15
kouhei (in TOK)
On 2017/04/28 01:28:35, hiroshige wrote: > lgtm with comments. > > https://codereview.chromium.org/2839563002/diff/1/third_party/WebKit/Source/core/dom/ModuleScript.h > File third_party/WebKit/Source/core/dom/ModuleScript.h ...
3 years, 7 months ago (2017-04-28 01:48:21 UTC) #16
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/2839563002/60001
3 years, 7 months ago (2017-04-28 01:49:23 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 03:58:30 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/321b6ea1a1e2f392c629e2f074ae...

Powered by Google App Engine
This is Rietveld 408576698