[ES6 modules] Introduce ReferrerScriptInfo
This CL implements ReferrerScriptInfo, which holds a copy of "referencing script" info, referenced in the "HostImportModuleDynamically" algorithm: https://github.com/tc39/proposal-dynamic-import/blob/master/HTML%20Integration.md#hostimportmoduledynamicallyreferencingscriptormodule-specifier-promisecapability This info can be encoded into v8::Local<v8::PrimitiveArray> and will be attached to v8::ScriptOrigin in future CLs. Dynamic import resolver will extract this from the ScriptOrigin of the referencing script in its implementation of "HostImportModuleDynamically" algorithm. Bug: 711706 Change-Id: I0649b6f0334154cdde910a657eee449b39f5f9c7 Reviewed-on: https://chromium-review.googlesource.com/668257Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#502176}
Showing
Please register or sign in to comment