mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:13:04 +00:00
[ddc] Using fully qualified import URIs for deferred load caching
Change-Id: Ibd4b9e1d37aeb9b2df3414eb52a01400e86c0f42 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/281562 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Mark Zhou <markzipan@google.com>
This commit is contained in:
parent
41bc0b4d07
commit
36ee2f3adb
|
@ -7051,7 +7051,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
|
|||
@override
|
||||
js_ast.Expression visitLoadLibrary(LoadLibrary node) =>
|
||||
runtimeCall('loadLibrary(#, #)', [
|
||||
js.string(jsLibraryName(node.import.enclosingLibrary)),
|
||||
js.string(node.import.enclosingLibrary.importUri.toString()),
|
||||
js.string(node.import.name!)
|
||||
]);
|
||||
|
||||
|
@ -7062,7 +7062,7 @@ class ProgramCompiler extends ComputeOnceConstantVisitor<js_ast.Expression>
|
|||
@override
|
||||
js_ast.Expression visitCheckLibraryIsLoaded(CheckLibraryIsLoaded node) =>
|
||||
runtimeCall('checkDeferredIsLoaded(#, #)', [
|
||||
js.string(jsLibraryName(node.import.enclosingLibrary)),
|
||||
js.string(node.import.enclosingLibrary.importUri.toString()),
|
||||
js.string(node.import.name!)
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue