Title: Length of the array returned from __newArray. · Issue #1588 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Length of the array returned from __newArray. · Issue #1588 · AssemblyScript/assemblyscript
X Title: Length of the array returned from __newArray. · Issue #1588 · AssemblyScript/assemblyscript
Description: Maybe i miss something, but for arrays created with __newArray, value of length is always 44. For example ... test.ts export function test_length(arr: f64[]) : i32 { return arr.length; } export const F64A = idof
Open Graph Description: Maybe i miss something, but for arrays created with __newArray, value of length is always 44. For example ... test.ts export function test_length(arr: f64[]) : i32 { return arr.length; } export con...
X Description: Maybe i miss something, but for arrays created with __newArray, value of length is always 44. For example ... test.ts export function test_length(arr: f64[]) : i32 { return arr.length; } export con...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/1588
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Length of the array returned from __newArray.","articleBody":"Maybe i miss something, but for arrays created with __newArray, value of length is always 44. For example ...\r\n> test.ts\r\n```typescript\r\nexport function test_length(arr: f64[]) : i32 {\r\n return arr.length;\r\n}\r\nexport const F64A = idof\u003cFloat64Array>()\r\n```\r\n> test.js\r\n```javascript\r\nlet arr = m.__retain(m.__newArray(m.F64A, [1, 2, 3, 4, 5]))\r\nconsole.log(m.test_length(arr))\r\nm.__release(arr)\r\n```\r\n> output is 44\r\n\r\nThis is not the case for arrays created within AssemblyScript and returned as pointers.\r\n","author":{"url":"https://github.com/synxroform","@type":"Person","name":"synxroform"},"datePublished":"2020-12-17T22:23:12Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/1588"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1b22da62-395f-2ce0-a776-6ce817007266 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99BE:17A8A4:333B5C:4468C3:6B009F72 |
| html-safe-nonce | 3a7a46e5d7125fd54c6f64b840daec350028f8e5feb32ebf675196e1e798adfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUJFOjE3QThBNDozMzNCNUM6NDQ2OEMzOjZCMDA5RjcyIiwidmlzaXRvcl9pZCI6Ijg4NTQwNDIwNzk5NzA1MDA0NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d2aafd8fd8c5b99bcfc13ff90dac13733144be922b250b339f291bb8d41f72ff |
| hovercard-subject-tag | issue:770418733 |
| 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/1588/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0dd4e6d22825a58e595b9d19dd10cd66e6f896f9cd6a3978cb525af96917eb17/AssemblyScript/assemblyscript/issues/1588 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0dd4e6d22825a58e595b9d19dd10cd66e6f896f9cd6a3978cb525af96917eb17/AssemblyScript/assemblyscript/issues/1588 |
| og:image:alt | Maybe i miss something, but for arrays created with __newArray, value of length is always 44. For example ... test.ts export function test_length(arr: f64[]) : i32 { return arr.length; } export con... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | synxroform |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8 |
| 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 | 1c9ddec8215f9a94e295c8310c3579b9c54ba31a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width