Title: `TypeError: internref expected` when map is passed to a function · Issue #2769 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: `TypeError: internref expected` when map is passed to a function · Issue #2769 · AssemblyScript/assemblyscript
X Title: `TypeError: internref expected` when map is passed to a function · Issue #2769 · AssemblyScript/assemblyscript
Description: Bug description Error TypeError: internref expected is raised by __lowerInternref when a Map is passed to a function Steps to reproduce create a .ts file with export function mapError(map: Map
Open Graph Description: Bug description Error TypeError: internref expected is raised by __lowerInternref when a Map is passed to a function Steps to reproduce create a .ts file with export function mapError(map: Map X Description: Bug description Error TypeError: internref expected is raised by __lowerInternref when a Map is passed to a function Steps to reproduce create a .ts file with export function mapError(map: Map<i...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/2769
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`TypeError: internref expected` when map is passed to a function","articleBody":"### Bug description\n\nError `TypeError: internref expected` is raised by `__lowerInternref` when a Map is passed to a function\n\n### Steps to reproduce\n\ncreate a .ts file with\r\n```TypeScript\r\nexport function mapError(map: Map\u003ci32, String\u003e): void {\r\n console.log(`Has one? ${map.has(1)}`);\r\n}\r\n```\r\ncompile with\r\n```bash\r\nasc assembly/index.ts --target debug \u0026\u0026 asc assembly/index.ts --target release\r\n```\r\nin a js file\r\n```\r\nimport { mapError } from \"../build/debug.js\";\r\nmapError(new Map())\r\n```\n\n### AssemblyScript version\n\n0.27.13","author":{"url":"https://github.com/paciops","@type":"Person","name":"paciops"},"datePublished":"2023-10-16T15:50:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2769/assemblyscript/issues/2769"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:a32586ca-4b4e-be3f-898a-5c584a41dca6 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E38C:3790:2F6DEA6:3E3DBDA:696DB319 html-safe-nonce 86f64df35d45157d2e2200baacb101ec95b1c222b5e7078fbfbed34980059fb0 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzhDOjM3OTA6MkY2REVBNjozRTNEQkRBOjY5NkRCMzE5IiwidmlzaXRvcl9pZCI6IjcyNjM1ODM0NDM2MjA4MzYxMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 2e9ef1e4cfe51ca5bdc0bf30acd024b89ba28e1e8e2757ab81c72f0c4914fc6f hovercard-subject-tag issue:1945569602 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/2769/issue_layout twitter:image https://opengraph.githubassets.com/e7990af149900802fbea0c599078ca73e979961f8e021209a7126f7ac9aa46e6/AssemblyScript/assemblyscript/issues/2769 twitter:card summary_large_image og:image https://opengraph.githubassets.com/e7990af149900802fbea0c599078ca73e979961f8e021209a7126f7ac9aa46e6/AssemblyScript/assemblyscript/issues/2769 og:image:alt Bug description Error TypeError: internref expected is raised by __lowerInternref when a Map is passed to a function Steps to reproduce create a .ts file with export function mapError(map: Map og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username paciops hostname github.com expected-hostname github.com None 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 turbo-cache-control no-preview go-import github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git octolytics-dimension-user_id 28916798 octolytics-dimension-user_login AssemblyScript octolytics-dimension-repository_id 105138356 octolytics-dimension-repository_nwo AssemblyScript/assemblyscript octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 105138356 octolytics-dimension-repository_network_root_nwo AssemblyScript/assemblyscript turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 7e5ae23c70136152637ceee8d6faceb35596ec46 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.