chrome-devtools-frontend 1.0.943709 → 1.0.945329
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/devtools_grd_files.gni +3 -0
- package/front_end/core/common/ParsedURL.ts +1 -1
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/i18n/i18nImpl.ts +7 -4
- package/front_end/core/i18n/locales/en-US.json +3 -72
- package/front_end/core/i18n/locales/en-XL.json +15 -84
- package/front_end/core/protocol_client/NodeURL.ts +1 -0
- package/front_end/core/sdk/CSSStyleDeclaration.ts +4 -0
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +2 -3
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +2 -3
- package/front_end/core/sdk/Cookie.ts +17 -0
- package/front_end/core/sdk/CookieModel.ts +1 -0
- package/front_end/core/sdk/DebuggerModel.ts +5 -4
- package/front_end/core/sdk/NetworkManager.ts +4 -1
- package/front_end/core/sdk/NetworkRequest.ts +2 -2
- package/front_end/core/sdk/OverlayModel.ts +0 -9
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/Script.ts +2 -7
- package/front_end/core/sdk/sdk-meta.ts +0 -26
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +0 -13
- package/front_end/entrypoints/main/MainImpl.ts +4 -0
- package/front_end/models/bindings/BreakpointManager.ts +3 -4
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -9
- package/front_end/models/bindings/ResourceMapping.ts +1 -2
- package/front_end/models/bindings/ResourceScriptMapping.ts +3 -11
- package/front_end/models/bindings/StylesSourceMapping.ts +1 -2
- package/front_end/models/formatter/SourceFormatter.ts +0 -15
- package/front_end/models/persistence/IsolatedFileSystem.ts +7 -6
- package/front_end/models/persistence/PersistenceActions.ts +4 -1
- package/front_end/models/persistence/PlatformFileSystem.ts +3 -4
- package/front_end/models/text_utils/ContentProvider.ts +1 -2
- package/front_end/models/text_utils/StaticContentProvider.ts +2 -3
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +20 -6
- package/front_end/panels/animation/animationTimeline.css +2 -0
- package/front_end/panels/application/BackForwardCacheStrings.ts +15 -75
- package/front_end/panels/application/ReportingApiView.ts +15 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +63 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +21 -34
- package/front_end/panels/changes/ChangesView.ts +8 -7
- package/front_end/panels/console/ConsolePinPane.ts +1 -0
- package/front_end/panels/console/ConsolePrompt.ts +121 -171
- package/front_end/panels/console/ConsoleView.ts +1 -1
- package/front_end/panels/console/consoleView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +2 -2
- package/front_end/panels/elements/AccessibilityTreeUtils.ts +98 -67
- package/front_end/panels/elements/AccessibilityTreeView.ts +76 -126
- package/front_end/panels/elements/ElementsPanel.ts +6 -7
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -0
- package/front_end/panels/elements/StylePropertyHighlighter.ts +29 -19
- package/front_end/panels/elements/StylesSidebarPane.ts +1 -1
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +27 -3
- package/front_end/panels/emulation/DeviceModeView.ts +3 -0
- package/front_end/panels/help/ReleaseNoteText.ts +3 -1
- package/front_end/panels/network/NetworkDataGridNode.ts +5 -1
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +1 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +1 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +0 -1
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -34
- package/front_end/panels/timeline/TimelineUIUtils.ts +51 -3
- package/front_end/services/window_bounds/WindowBoundsService.ts +27 -0
- package/front_end/services/window_bounds/window_bounds.ts +9 -0
- package/front_end/third_party/acorn/README.chromium +2 -2
- package/front_end/third_party/acorn/acorn.ts +1 -1
- package/front_end/third_party/acorn/package/CHANGELOG.md +31 -1
- package/front_end/third_party/acorn/package/README.md +1 -1
- package/front_end/third_party/acorn/package/dist/acorn.d.ts +3 -0
- package/front_end/third_party/acorn/package/dist/acorn.js +772 -708
- package/front_end/third_party/acorn/package/dist/acorn.mjs +767 -703
- package/front_end/third_party/acorn/package/dist/bin.js +47 -21
- package/front_end/third_party/acorn/package/package.json +1 -1
- package/front_end/third_party/acorn-loose/README.chromium +2 -2
- package/front_end/third_party/acorn-loose/package/CHANGELOG.md +12 -0
- package/front_end/third_party/acorn-loose/package/dist/acorn-loose.js +27 -7
- package/front_end/third_party/acorn-loose/package/dist/acorn-loose.mjs +28 -8
- package/front_end/third_party/acorn-loose/package/package.json +2 -2
- package/front_end/third_party/codemirror.next/bundle.ts +4 -3
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +39 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +4 -4
- package/front_end/third_party/i18n/i18n-impl.ts +1 -1
- package/front_end/third_party/lit-html/README.chromium +2 -2
- package/front_end/third_party/lit-html/package/CHANGELOG.md +216 -28
- package/front_end/third_party/lit-html/package/LICENSE +9 -9
- package/front_end/third_party/lit-html/package/README.md +12 -162
- package/front_end/third_party/lit-html/package/async-directive.d.ts +23 -54
- package/front_end/third_party/lit-html/package/async-directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/async-directive.js +2 -7
- package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts +23 -54
- package/front_end/third_party/lit-html/package/development/async-directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/async-directive.js +44 -194
- package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts +6 -5
- package/front_end/third_party/lit-html/package/development/directive-helpers.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive-helpers.js +25 -9
- package/front_end/third_party/lit-html/package/development/directive-helpers.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive.d.ts +3 -16
- package/front_end/third_party/lit-html/package/development/directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directive.js +6 -1
- package/front_end/third_party/lit-html/package/development/directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts +7 -14
- package/front_end/third_party/lit-html/package/development/directives/async-append.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-append.js +17 -58
- package/front_end/third_party/lit-html/package/development/directives/async-append.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts +9 -14
- package/front_end/third_party/lit-html/package/development/directives/async-replace.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/async-replace.js +57 -37
- package/front_end/third_party/lit-html/package/development/directives/async-replace.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/cache.d.ts +2 -3
- package/front_end/third_party/lit-html/package/development/directives/cache.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/cache.js +4 -6
- package/front_end/third_party/lit-html/package/development/directives/cache.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts +2 -2
- package/front_end/third_party/lit-html/package/development/directives/class-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/class-map.js +17 -7
- package/front_end/third_party/lit-html/package/development/directives/class-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/guard.d.ts +3 -2
- package/front_end/third_party/lit-html/package/development/directives/guard.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/guard.js +3 -2
- package/front_end/third_party/lit-html/package/development/directives/guard.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/live.d.ts +4 -3
- package/front_end/third_party/lit-html/package/development/directives/live.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/live.js +5 -7
- package/front_end/third_party/lit-html/package/development/directives/live.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts +58 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js +85 -0
- package/front_end/third_party/lit-html/package/development/directives/private-async-helpers.js.map +1 -0
- package/front_end/third_party/lit-html/package/development/directives/ref.d.ts +14 -11
- package/front_end/third_party/lit-html/package/development/directives/ref.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/ref.js +13 -11
- package/front_end/third_party/lit-html/package/development/directives/ref.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts +8 -4
- package/front_end/third_party/lit-html/package/development/directives/repeat.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/repeat.js +23 -9
- package/front_end/third_party/lit-html/package/development/directives/repeat.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts +1 -2
- package/front_end/third_party/lit-html/package/development/directives/style-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/style-map.js +1 -2
- package/front_end/third_party/lit-html/package/development/directives/style-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -2
- package/front_end/third_party/lit-html/package/development/directives/template-content.js +1 -2
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts +6 -4
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js +7 -5
- package/front_end/third_party/lit-html/package/development/directives/unsafe-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts +4 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js +3 -0
- package/front_end/third_party/lit-html/package/development/directives/unsafe-svg.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/until.d.ts +12 -8
- package/front_end/third_party/lit-html/package/development/directives/until.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/directives/until.js +63 -23
- package/front_end/third_party/lit-html/package/development/directives/until.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.js +9 -8
- package/front_end/third_party/lit-html/package/development/experimental-hydrate.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts +81 -136
- package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/lit-html.js +249 -76
- package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts +1 -41
- package/front_end/third_party/lit-html/package/development/polyfill-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/polyfill-support.js +40 -21
- package/front_end/third_party/lit-html/package/development/polyfill-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts +12 -10
- package/front_end/third_party/lit-html/package/development/private-ssr-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/private-ssr-support.js +11 -3
- package/front_end/third_party/lit-html/package/development/private-ssr-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/development/static.js +6 -5
- package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
- package/front_end/third_party/lit-html/package/directive-helpers.d.ts +6 -5
- package/front_end/third_party/lit-html/package/directive-helpers.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directive-helpers.js +2 -2
- package/front_end/third_party/lit-html/package/directive-helpers.js.map +1 -1
- package/front_end/third_party/lit-html/package/directive.d.ts +3 -16
- package/front_end/third_party/lit-html/package/directive.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directive.js +1 -1
- package/front_end/third_party/lit-html/package/directive.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-append.d.ts +7 -14
- package/front_end/third_party/lit-html/package/directives/async-append.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-append.js +2 -6
- package/front_end/third_party/lit-html/package/directives/async-append.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-replace.d.ts +9 -14
- package/front_end/third_party/lit-html/package/directives/async-replace.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/async-replace.js +2 -5
- package/front_end/third_party/lit-html/package/directives/async-replace.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/cache.d.ts +2 -3
- package/front_end/third_party/lit-html/package/directives/cache.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/cache.js +2 -5
- package/front_end/third_party/lit-html/package/directives/cache.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/class-map.d.ts +2 -2
- package/front_end/third_party/lit-html/package/directives/class-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/class-map.js +2 -4
- package/front_end/third_party/lit-html/package/directives/class-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.d.ts +3 -2
- package/front_end/third_party/lit-html/package/directives/guard.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/guard.js +2 -4
- package/front_end/third_party/lit-html/package/directives/guard.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/live.d.ts +4 -3
- package/front_end/third_party/lit-html/package/directives/live.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/live.js +1 -4
- package/front_end/third_party/lit-html/package/directives/live.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts +58 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.d.ts.map +1 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.js +7 -0
- package/front_end/third_party/lit-html/package/directives/private-async-helpers.js.map +1 -0
- package/front_end/third_party/lit-html/package/directives/ref.d.ts +14 -11
- package/front_end/third_party/lit-html/package/directives/ref.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/ref.js +2 -5
- package/front_end/third_party/lit-html/package/directives/ref.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.d.ts +8 -4
- package/front_end/third_party/lit-html/package/directives/repeat.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/repeat.js +2 -5
- package/front_end/third_party/lit-html/package/directives/repeat.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.d.ts +1 -2
- package/front_end/third_party/lit-html/package/directives/style-map.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/style-map.js +2 -4
- package/front_end/third_party/lit-html/package/directives/style-map.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -2
- package/front_end/third_party/lit-html/package/directives/template-content.js +2 -4
- package/front_end/third_party/lit-html/package/directives/template-content.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts +6 -4
- package/front_end/third_party/lit-html/package/directives/unsafe-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js +2 -4
- package/front_end/third_party/lit-html/package/directives/unsafe-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts +4 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/unsafe-svg.js.map +1 -1
- package/front_end/third_party/lit-html/package/directives/until.d.ts +12 -8
- package/front_end/third_party/lit-html/package/directives/until.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/directives/until.js +2 -6
- package/front_end/third_party/lit-html/package/directives/until.js.map +1 -1
- package/front_end/third_party/lit-html/package/experimental-hydrate.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/experimental-hydrate.js +2 -5
- package/front_end/third_party/lit-html/package/experimental-hydrate.js.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.d.ts +81 -136
- package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js +1 -1
- package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
- package/front_end/third_party/lit-html/package/package.json +75 -24
- package/front_end/third_party/lit-html/package/polyfill-support.d.ts +1 -41
- package/front_end/third_party/lit-html/package/polyfill-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/polyfill-support.js +1 -1
- package/front_end/third_party/lit-html/package/polyfill-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.d.ts +12 -10
- package/front_end/third_party/lit-html/package/private-ssr-support.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/private-ssr-support.js +2 -2
- package/front_end/third_party/lit-html/package/private-ssr-support.js.map +1 -1
- package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
- package/front_end/third_party/lit-html/package/static.js +1 -1
- package/front_end/third_party/lit-html/package/static.js.map +1 -1
- package/front_end/third_party/marked/README.chromium +2 -2
- package/front_end/third_party/marked/marked.ts +2 -2
- package/front_end/third_party/marked/package/README.md +7 -1
- package/front_end/third_party/marked/package/bin/marked.js +214 -0
- package/front_end/third_party/marked/package/lib/marked.cjs +2907 -0
- package/front_end/third_party/marked/package/lib/marked.esm.d.ts +1 -3
- package/front_end/third_party/marked/package/lib/marked.esm.js +627 -586
- package/front_end/third_party/marked/package/lib/marked.umd.js +2913 -0
- package/front_end/third_party/marked/package/man/marked.1 +5 -24
- package/front_end/third_party/marked/package/man/marked.1.txt +21 -31
- package/front_end/third_party/marked/package/marked.min.js +1 -1
- package/front_end/third_party/marked/package/package.json +41 -32
- package/front_end/third_party/marked/package/src/Lexer.js +109 -108
- package/front_end/third_party/marked/package/src/Parser.js +38 -15
- package/front_end/third_party/marked/package/src/Renderer.js +5 -5
- package/front_end/third_party/marked/package/src/Slugger.js +2 -2
- package/front_end/third_party/marked/package/src/TextRenderer.js +2 -2
- package/front_end/third_party/marked/package/src/Tokenizer.js +215 -190
- package/front_end/third_party/marked/package/src/defaults.js +6 -9
- package/front_end/third_party/marked/package/src/helpers.js +16 -27
- package/front_end/third_party/marked/package/src/marked.js +146 -63
- package/front_end/third_party/marked/package/src/rules.js +20 -45
- package/front_end/third_party/wasmparser/README.chromium +2 -2
- package/front_end/third_party/wasmparser/package/.github/workflows/main.yml +47 -0
- package/front_end/third_party/wasmparser/package/CHANGELOG.md +12 -0
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js +53 -53
- package/front_end/third_party/wasmparser/package/dist/cjs/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js +53 -53
- package/front_end/third_party/wasmparser/package/dist/esm/WasmParser.js.map +1 -1
- package/front_end/third_party/wasmparser/package/package.json +1 -1
- package/front_end/third_party/wasmparser/package/src/WasmParser.ts +53 -53
- package/front_end/ui/components/text_editor/TextEditor.ts +29 -0
- package/front_end/ui/components/text_editor/config.ts +36 -14
- package/front_end/ui/components/text_editor/javascript.ts +14 -9
- package/front_end/ui/components/text_editor/theme.ts +29 -4
- package/front_end/ui/legacy/InspectorView.ts +1 -1
- package/front_end/ui/legacy/ViewManager.ts +6 -0
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +20 -0
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +1 -0
- package/front_end/ui/legacy/components/utils/Linkifier.ts +49 -79
- package/front_end/ui/legacy/themeColors.css +2 -0
- package/inspector_overlay/main.ts +3 -0
- package/package.json +1 -1
|
@@ -1652,7 +1652,7 @@ export class BinaryReader {
|
|
|
1652
1652
|
if ((byte & 0x80) === 0)
|
|
1653
1653
|
break;
|
|
1654
1654
|
}
|
|
1655
|
-
return result;
|
|
1655
|
+
return result >>> 0;
|
|
1656
1656
|
}
|
|
1657
1657
|
readVarInt64() {
|
|
1658
1658
|
var result = new Uint8Array(8);
|
|
@@ -1726,7 +1726,7 @@ export class BinaryReader {
|
|
|
1726
1726
|
return new Type(0 /* unspecified */, func_index);
|
|
1727
1727
|
}
|
|
1728
1728
|
readStringBytes() {
|
|
1729
|
-
var length = this.readVarUint32()
|
|
1729
|
+
var length = this.readVarUint32();
|
|
1730
1730
|
return this.readBytes(length);
|
|
1731
1731
|
}
|
|
1732
1732
|
readBytes(length) {
|
|
@@ -1741,7 +1741,7 @@ export class BinaryReader {
|
|
|
1741
1741
|
if (!this.hasVarIntBytes())
|
|
1742
1742
|
return false;
|
|
1743
1743
|
var pos = this._pos;
|
|
1744
|
-
var length = this.readVarUint32()
|
|
1744
|
+
var length = this.readVarUint32();
|
|
1745
1745
|
var result = this.hasBytes(length);
|
|
1746
1746
|
this._pos = pos;
|
|
1747
1747
|
return result;
|
|
@@ -1750,7 +1750,7 @@ export class BinaryReader {
|
|
|
1750
1750
|
return this.hasBytes(this._sectionRange.end - this._pos);
|
|
1751
1751
|
}
|
|
1752
1752
|
readFuncType() {
|
|
1753
|
-
var paramCount = this.readVarUint32()
|
|
1753
|
+
var paramCount = this.readVarUint32();
|
|
1754
1754
|
var paramTypes = new Array(paramCount);
|
|
1755
1755
|
for (var i = 0; i < paramCount; i++)
|
|
1756
1756
|
paramTypes[i] = this.readType();
|
|
@@ -1771,7 +1771,7 @@ export class BinaryReader {
|
|
|
1771
1771
|
return result;
|
|
1772
1772
|
}
|
|
1773
1773
|
readStructType() {
|
|
1774
|
-
var fieldCount = this.readVarUint32()
|
|
1774
|
+
var fieldCount = this.readVarUint32();
|
|
1775
1775
|
var fieldTypes = new Array(fieldCount);
|
|
1776
1776
|
var fieldMutabilities = new Array(fieldCount);
|
|
1777
1777
|
for (var i = 0; i < fieldCount; i++) {
|
|
@@ -1806,21 +1806,21 @@ export class BinaryReader {
|
|
|
1806
1806
|
return result;
|
|
1807
1807
|
}
|
|
1808
1808
|
readResizableLimits(maxPresent) {
|
|
1809
|
-
var initial = this.readVarUint32()
|
|
1809
|
+
var initial = this.readVarUint32();
|
|
1810
1810
|
var maximum;
|
|
1811
1811
|
if (maxPresent) {
|
|
1812
|
-
maximum = this.readVarUint32()
|
|
1812
|
+
maximum = this.readVarUint32();
|
|
1813
1813
|
}
|
|
1814
1814
|
return { initial: initial, maximum: maximum };
|
|
1815
1815
|
}
|
|
1816
1816
|
readTableType() {
|
|
1817
1817
|
var elementType = this.readType();
|
|
1818
|
-
var flags = this.readVarUint32()
|
|
1818
|
+
var flags = this.readVarUint32();
|
|
1819
1819
|
var limits = this.readResizableLimits(!!(flags & 0x01));
|
|
1820
1820
|
return { elementType: elementType, limits: limits };
|
|
1821
1821
|
}
|
|
1822
1822
|
readMemoryType() {
|
|
1823
|
-
var flags = this.readVarUint32()
|
|
1823
|
+
var flags = this.readVarUint32();
|
|
1824
1824
|
var shared = !!(flags & 0x02);
|
|
1825
1825
|
return {
|
|
1826
1826
|
limits: this.readResizableLimits(!!(flags & 0x01)),
|
|
@@ -1841,8 +1841,8 @@ export class BinaryReader {
|
|
|
1841
1841
|
return { contentType: contentType, mutability: mutability };
|
|
1842
1842
|
}
|
|
1843
1843
|
readEventType() {
|
|
1844
|
-
var attribute = this.readVarUint32()
|
|
1845
|
-
var typeIndex = this.readVarUint32()
|
|
1844
|
+
var attribute = this.readVarUint32();
|
|
1845
|
+
var typeIndex = this.readVarUint32();
|
|
1846
1846
|
return {
|
|
1847
1847
|
attribute: attribute,
|
|
1848
1848
|
typeIndex: typeIndex,
|
|
@@ -1893,7 +1893,7 @@ export class BinaryReader {
|
|
|
1893
1893
|
var type;
|
|
1894
1894
|
switch (kind) {
|
|
1895
1895
|
case 0 /* Function */:
|
|
1896
|
-
funcTypeIndex = this.readVarUint32()
|
|
1896
|
+
funcTypeIndex = this.readVarUint32();
|
|
1897
1897
|
break;
|
|
1898
1898
|
case 1 /* Table */:
|
|
1899
1899
|
type = this.readTableType();
|
|
@@ -1925,7 +1925,7 @@ export class BinaryReader {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
var field = this.readStringBytes();
|
|
1927
1927
|
var kind = this.readUint8();
|
|
1928
|
-
var index = this.readVarUint32()
|
|
1928
|
+
var index = this.readVarUint32();
|
|
1929
1929
|
this.state = 17 /* EXPORT_SECTION_ENTRY */;
|
|
1930
1930
|
this.result = { field: field, kind: kind, index: index };
|
|
1931
1931
|
this._sectionEntriesLeft--;
|
|
@@ -1936,7 +1936,7 @@ export class BinaryReader {
|
|
|
1936
1936
|
this.skipSection();
|
|
1937
1937
|
return this.read();
|
|
1938
1938
|
}
|
|
1939
|
-
var typeIndex = this.readVarUint32()
|
|
1939
|
+
var typeIndex = this.readVarUint32();
|
|
1940
1940
|
this.state = 13 /* FUNCTION_SECTION_ENTRY */;
|
|
1941
1941
|
this.result = { typeIndex: typeIndex };
|
|
1942
1942
|
this._sectionEntriesLeft--;
|
|
@@ -2123,8 +2123,8 @@ export class BinaryReader {
|
|
|
2123
2123
|
return true;
|
|
2124
2124
|
}
|
|
2125
2125
|
readMemoryImmediate() {
|
|
2126
|
-
var flags = this.readVarUint32()
|
|
2127
|
-
var offset = this.readVarUint32()
|
|
2126
|
+
var flags = this.readVarUint32();
|
|
2127
|
+
var offset = this.readVarUint32();
|
|
2128
2128
|
return { flags: flags, offset: offset };
|
|
2129
2129
|
}
|
|
2130
2130
|
readNameMap() {
|
|
@@ -2244,7 +2244,7 @@ export class BinaryReader {
|
|
|
2244
2244
|
if (!this.hasVarIntBytes())
|
|
2245
2245
|
return false;
|
|
2246
2246
|
var pos = this._pos;
|
|
2247
|
-
var type = this.readVarUint32()
|
|
2247
|
+
var type = this.readVarUint32();
|
|
2248
2248
|
var index;
|
|
2249
2249
|
switch (type) {
|
|
2250
2250
|
case 1 /* StackPointer */:
|
|
@@ -2341,11 +2341,11 @@ export class BinaryReader {
|
|
|
2341
2341
|
case 64356 /* br_on_non_data */:
|
|
2342
2342
|
case 64354 /* br_on_i31 */:
|
|
2343
2343
|
case 64357 /* br_on_non_i31 */:
|
|
2344
|
-
brDepth = this.readVarUint32()
|
|
2344
|
+
brDepth = this.readVarUint32();
|
|
2345
2345
|
break;
|
|
2346
2346
|
case 64326 /* br_on_cast_static */:
|
|
2347
2347
|
case 64327 /* br_on_cast_static_fail */:
|
|
2348
|
-
brDepth = this.readVarUint32()
|
|
2348
|
+
brDepth = this.readVarUint32();
|
|
2349
2349
|
refType = this.readHeapType();
|
|
2350
2350
|
break;
|
|
2351
2351
|
case 64275 /* array_get */:
|
|
@@ -2384,7 +2384,7 @@ export class BinaryReader {
|
|
|
2384
2384
|
refType = this.readHeapType();
|
|
2385
2385
|
// This really is the "length" value. Overload "brDepth" to keep the
|
|
2386
2386
|
// IOperatorInformation interface a little leaner.
|
|
2387
|
-
brDepth = this.readVarUint32()
|
|
2387
|
+
brDepth = this.readVarUint32();
|
|
2388
2388
|
break;
|
|
2389
2389
|
case 64336 /* ref_is_func */:
|
|
2390
2390
|
case 64337 /* ref_is_data */:
|
|
@@ -2450,25 +2450,25 @@ export class BinaryReader {
|
|
|
2450
2450
|
reserved = this.readVarUint1();
|
|
2451
2451
|
break;
|
|
2452
2452
|
case 64524 /* table_init */:
|
|
2453
|
-
segmentIndex = this.readVarUint32()
|
|
2454
|
-
tableIndex = this.readVarUint32()
|
|
2453
|
+
segmentIndex = this.readVarUint32();
|
|
2454
|
+
tableIndex = this.readVarUint32();
|
|
2455
2455
|
break;
|
|
2456
2456
|
case 64526 /* table_copy */:
|
|
2457
|
-
tableIndex = this.readVarUint32()
|
|
2458
|
-
destinationIndex = this.readVarUint32()
|
|
2457
|
+
tableIndex = this.readVarUint32();
|
|
2458
|
+
destinationIndex = this.readVarUint32();
|
|
2459
2459
|
break;
|
|
2460
2460
|
case 64527 /* table_grow */:
|
|
2461
2461
|
case 64528 /* table_size */:
|
|
2462
2462
|
case 64529 /* table_fill */:
|
|
2463
|
-
tableIndex = this.readVarUint32()
|
|
2463
|
+
tableIndex = this.readVarUint32();
|
|
2464
2464
|
break;
|
|
2465
2465
|
case 64520 /* memory_init */:
|
|
2466
|
-
segmentIndex = this.readVarUint32()
|
|
2466
|
+
segmentIndex = this.readVarUint32();
|
|
2467
2467
|
reserved = this.readVarUint1();
|
|
2468
2468
|
break;
|
|
2469
2469
|
case 64521 /* data_drop */:
|
|
2470
2470
|
case 64525 /* elem_drop */:
|
|
2471
|
-
segmentIndex = this.readVarUint32()
|
|
2471
|
+
segmentIndex = this.readVarUint32();
|
|
2472
2472
|
break;
|
|
2473
2473
|
default:
|
|
2474
2474
|
this.error = new Error(`Unknown operator: 0x${code.toString(16).padStart(4, "0")}`);
|
|
@@ -2957,10 +2957,10 @@ export class BinaryReader {
|
|
|
2957
2957
|
case 13 /* br_if */:
|
|
2958
2958
|
case 212 /* br_on_null */:
|
|
2959
2959
|
case 214 /* br_on_non_null */:
|
|
2960
|
-
brDepth = this.readVarUint32()
|
|
2960
|
+
brDepth = this.readVarUint32();
|
|
2961
2961
|
break;
|
|
2962
2962
|
case 14 /* br_table */:
|
|
2963
|
-
var tableCount = this.readVarUint32()
|
|
2963
|
+
var tableCount = this.readVarUint32();
|
|
2964
2964
|
if (!this.hasBytes(tableCount + 1)) {
|
|
2965
2965
|
// We need at least (tableCount + 1) bytes
|
|
2966
2966
|
this._pos = pos;
|
|
@@ -2973,12 +2973,12 @@ export class BinaryReader {
|
|
|
2973
2973
|
this._pos = pos;
|
|
2974
2974
|
return false;
|
|
2975
2975
|
}
|
|
2976
|
-
brTable.push(this.readVarUint32()
|
|
2976
|
+
brTable.push(this.readVarUint32());
|
|
2977
2977
|
}
|
|
2978
2978
|
break;
|
|
2979
2979
|
case 9 /* rethrow */:
|
|
2980
2980
|
case 24 /* delegate */:
|
|
2981
|
-
relativeDepth = this.readVarUint32()
|
|
2981
|
+
relativeDepth = this.readVarUint32();
|
|
2982
2982
|
break;
|
|
2983
2983
|
case 7 /* catch */:
|
|
2984
2984
|
case 8 /* throw */:
|
|
@@ -2990,25 +2990,25 @@ export class BinaryReader {
|
|
|
2990
2990
|
case 16 /* call */:
|
|
2991
2991
|
case 18 /* return_call */:
|
|
2992
2992
|
case 210 /* ref_func */:
|
|
2993
|
-
funcIndex = this.readVarUint32()
|
|
2993
|
+
funcIndex = this.readVarUint32();
|
|
2994
2994
|
break;
|
|
2995
2995
|
case 17 /* call_indirect */:
|
|
2996
2996
|
case 19 /* return_call_indirect */:
|
|
2997
|
-
typeIndex = this.readVarUint32()
|
|
2997
|
+
typeIndex = this.readVarUint32();
|
|
2998
2998
|
reserved = this.readVarUint1();
|
|
2999
2999
|
break;
|
|
3000
3000
|
case 32 /* local_get */:
|
|
3001
3001
|
case 33 /* local_set */:
|
|
3002
3002
|
case 34 /* local_tee */:
|
|
3003
|
-
localIndex = this.readVarUint32()
|
|
3003
|
+
localIndex = this.readVarUint32();
|
|
3004
3004
|
break;
|
|
3005
3005
|
case 35 /* global_get */:
|
|
3006
3006
|
case 36 /* global_set */:
|
|
3007
|
-
globalIndex = this.readVarUint32()
|
|
3007
|
+
globalIndex = this.readVarUint32();
|
|
3008
3008
|
break;
|
|
3009
3009
|
case 37 /* table_get */:
|
|
3010
3010
|
case 38 /* table_set */:
|
|
3011
|
-
tableIndex = this.readVarUint32()
|
|
3011
|
+
tableIndex = this.readVarUint32();
|
|
3012
3012
|
break;
|
|
3013
3013
|
case 40 /* i32_load */:
|
|
3014
3014
|
case 41 /* i64_load */:
|
|
@@ -3266,20 +3266,20 @@ export class BinaryReader {
|
|
|
3266
3266
|
if (!this.hasVarIntBytes())
|
|
3267
3267
|
return false;
|
|
3268
3268
|
var pos = this._pos;
|
|
3269
|
-
var size = this.readVarUint32()
|
|
3269
|
+
var size = this.readVarUint32();
|
|
3270
3270
|
var bodyEnd = this._pos + size;
|
|
3271
3271
|
if (!this.hasVarIntBytes()) {
|
|
3272
3272
|
this._pos = pos;
|
|
3273
3273
|
return false;
|
|
3274
3274
|
}
|
|
3275
|
-
var localCount = this.readVarUint32()
|
|
3275
|
+
var localCount = this.readVarUint32();
|
|
3276
3276
|
var locals = [];
|
|
3277
3277
|
for (var i = 0; i < localCount; i++) {
|
|
3278
3278
|
if (!this.hasVarIntBytes()) {
|
|
3279
3279
|
this._pos = pos;
|
|
3280
3280
|
return false;
|
|
3281
3281
|
}
|
|
3282
|
-
var count = this.readVarUint32()
|
|
3282
|
+
var count = this.readVarUint32();
|
|
3283
3283
|
if (!this.hasVarIntBytes()) {
|
|
3284
3284
|
this._pos = pos;
|
|
3285
3285
|
return false;
|
|
@@ -3323,7 +3323,7 @@ export class BinaryReader {
|
|
|
3323
3323
|
this._pos = sectionStart;
|
|
3324
3324
|
return false;
|
|
3325
3325
|
}
|
|
3326
|
-
var payloadLength = this.readVarUint32()
|
|
3326
|
+
var payloadLength = this.readVarUint32();
|
|
3327
3327
|
var name = null;
|
|
3328
3328
|
var payloadEnd = this._pos + payloadLength;
|
|
3329
3329
|
if (id == 0) {
|
|
@@ -3361,37 +3361,37 @@ export class BinaryReader {
|
|
|
3361
3361
|
case 1 /* Type */:
|
|
3362
3362
|
if (!this.hasSectionPayload())
|
|
3363
3363
|
return false;
|
|
3364
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3364
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3365
3365
|
return this.readTypeEntry();
|
|
3366
3366
|
case 2 /* Import */:
|
|
3367
3367
|
if (!this.hasSectionPayload())
|
|
3368
3368
|
return false;
|
|
3369
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3369
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3370
3370
|
return this.readImportEntry();
|
|
3371
3371
|
case 7 /* Export */:
|
|
3372
3372
|
if (!this.hasSectionPayload())
|
|
3373
3373
|
return false;
|
|
3374
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3374
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3375
3375
|
return this.readExportEntry();
|
|
3376
3376
|
case 3 /* Function */:
|
|
3377
3377
|
if (!this.hasSectionPayload())
|
|
3378
3378
|
return false;
|
|
3379
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3379
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3380
3380
|
return this.readFunctionEntry();
|
|
3381
3381
|
case 4 /* Table */:
|
|
3382
3382
|
if (!this.hasSectionPayload())
|
|
3383
3383
|
return false;
|
|
3384
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3384
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3385
3385
|
return this.readTableEntry();
|
|
3386
3386
|
case 5 /* Memory */:
|
|
3387
3387
|
if (!this.hasSectionPayload())
|
|
3388
3388
|
return false;
|
|
3389
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3389
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3390
3390
|
return this.readMemoryEntry();
|
|
3391
3391
|
case 6 /* Global */:
|
|
3392
3392
|
if (!this.hasVarIntBytes())
|
|
3393
3393
|
return false;
|
|
3394
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3394
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3395
3395
|
return this.readGlobalEntry();
|
|
3396
3396
|
case 8 /* Start */:
|
|
3397
3397
|
if (!this.hasVarIntBytes())
|
|
@@ -3402,23 +3402,23 @@ export class BinaryReader {
|
|
|
3402
3402
|
case 10 /* Code */:
|
|
3403
3403
|
if (!this.hasVarIntBytes())
|
|
3404
3404
|
return false;
|
|
3405
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3405
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3406
3406
|
this.state = 29 /* READING_FUNCTION_HEADER */;
|
|
3407
3407
|
return this.readFunctionBody();
|
|
3408
3408
|
case 9 /* Element */:
|
|
3409
3409
|
if (!this.hasVarIntBytes())
|
|
3410
3410
|
return false;
|
|
3411
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3411
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3412
3412
|
return this.readElementEntry();
|
|
3413
3413
|
case 11 /* Data */:
|
|
3414
3414
|
if (!this.hasVarIntBytes())
|
|
3415
3415
|
return false;
|
|
3416
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3416
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3417
3417
|
return this.readDataEntry();
|
|
3418
3418
|
case 13 /* Event */:
|
|
3419
3419
|
if (!this.hasVarIntBytes())
|
|
3420
3420
|
return false;
|
|
3421
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3421
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3422
3422
|
return this.readEventEntry();
|
|
3423
3423
|
case 0 /* Custom */:
|
|
3424
3424
|
var customSectionName = bytesToString(currentSection.name);
|
|
@@ -3431,7 +3431,7 @@ export class BinaryReader {
|
|
|
3431
3431
|
if (customSectionName === "linking") {
|
|
3432
3432
|
if (!this.hasVarIntBytes())
|
|
3433
3433
|
return false;
|
|
3434
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3434
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3435
3435
|
return this.readLinkingEntry();
|
|
3436
3436
|
}
|
|
3437
3437
|
if (customSectionName === "sourceMappingURL") {
|
|
@@ -3579,7 +3579,7 @@ export class BinaryReader {
|
|
|
3579
3579
|
case 41 /* RELOC_SECTION_HEADER */:
|
|
3580
3580
|
if (!this.hasVarIntBytes())
|
|
3581
3581
|
return false;
|
|
3582
|
-
this._sectionEntriesLeft = this.readVarUint32()
|
|
3582
|
+
this._sectionEntriesLeft = this.readVarUint32();
|
|
3583
3583
|
return this.readRelocEntry();
|
|
3584
3584
|
case 21 /* LINKING_SECTION_ENTRY */:
|
|
3585
3585
|
return this.readLinkingEntry();
|