-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory.prototype.grow(1) TypeArray(memory.buffer, memory.buffer.byteLength/2, memory.buffer.byteLength) RangeError #2719
Comments
I'm extremely confused. Please help me out of my ignorance here, can you limit the question to what relates to ECMAScript only? This project does not observe WebAssembly specs and I'd be thankful if you can save me a time shortening the question to what might be wrong, not covered, or idk on TypedArrays or ArrayBuffer in this project. Thanks |
Tried to make the question as simple as possible by using code. Already filed an issue at WebAssembly/design, where was referred to JavaScript and implementers. From a front-end perspective the respective stakeholders either should have considered this already, and tested, or have not gotten around to testing Running the code at Essentially the behaviour of The The question is very basic, is that the intended behaviour? If not, kindly document the intended behaviour from JavaScript perspective, as the actual result breaks description of |
The buck has been passed from WebAssembly WebAssembly/design#1358 (comment) to implementers
to JavaScript WebAssembly/design#1358 (comment)
back to WebAssembly
If implementers are consistent in throwing Will file implementer issues. |
In JS, TypedArrays and SharedArrayBuffers can't "grow"; their size is static. https://github.com/tc39-transfer/proposal-resizablearraybuffer is a proposal to allow that. |
I believe this is not best the repo for you will to find the answer for your questions.
Test262 is limited to the ECMAScript suite and I don't even know what to say about the WebAssembly API. We can discuss here about test coverage (not implementation) of For anything else, I'm pretty lost. |
Well, |
Well, yes, that is why filed this issue here. The cases are not tested right now. Just happened to encounter this issue while experimenting with workarounds for the restrictions of different API's. Decided to let the relevant stakeholders know that their documentation - and testing - is lacking in this topic. |
@guest271314 I'm pretty sure SharedArrayBuffers can't grow per the JS spec; I don't know anything about WebAssembly.Memory. If wasm is specified in a way that conflicts with JS, then that seems like something to take up with wasm? |
That's a violation of the ECMAScript specs, therefore I cannot see how the problem relates to Test262.
You would be surprised that TypedArray is specified for a broader usage, indeed.
This is not the repo to address this, and for this I'll close this issue to value time of people working in this project. Please use the appropriate channels. I won't be able to help you here. |
Do any of you actually read the OP, the links, and the entire thread? Filed an Issue at WebAssembly/design first, where was referred to file a Chromium bug and that the scope was JavaScript. Have the parties even actually discussed this convergence, as WebAssembly does use JavaScript and JavaScript does describe "abstractions" re |
There are ten apples (N), you can keep half of it (N/2), but ten apples you have to give away. That simply doesn't work, right? 😄 |
Where? Cite your references.
Just cite the primary sources that you are talking about. Do not "believe" in anything. SHow the evidence for your claims.
Yes, it is. This repository should have already had tests for those cases, but have failed to do so thus far, and is still passing the buck, to whom, is unknown. |
@anba That does not explain why |
https://tc39.es/ecma262/#sec-sharedarraybuffer-objects
https://docs.tizen.org/application/web/guides/w3c/supplement/typedarray/
Have you seen what this project is? This is a project with tests. The only tests here are to cover ECMAScript specs and TC39 proposals in Stage 3. I cannot offer you tests for cases you're just saying that needs to be documented. Please go through the adequate TC39 process. |
For the
Hmm, all elements, so |
@leobalter What exactly is that "process". Some organizations use the term "process" or claim to have a "process" yet have no clue what real "proceess", or procedure is. Am not interested in joining any organization just to point out the obvious. The obvious has already been pointed out. The closure of this issue demonstrates that the organization prefers to pass the buck rather than be the authority in some regards. Why tests would not be perfomed re how TypedArray's are being used with the state of the art technology does not make sense, here. All variations need to be tested, if only to determine where we are, in reality, not in the fiction of language that has obviously not been adapted to the present, implemented code that uses products of JavaScript (Ecmascript). Essentially putting on blinders, which is the opposite of testing. |
@anba AFAICT there is no configuration or pattern that will "work". |
ok. |
Chromium 86
Nightly 80
Adjusting the code
Chromium 86
Nightly 80
Which means the original code that am attempting to test
const u8_2 = new Uint8Array(m.buffer, m.buffer.byteLength/2 -1, 2);
is not possible, at least using
TypedArray
constructor andset()
in the above patterns?Is this specified and expected behaviour?
Or, is this an implementer of
SharedArrayBuffer
andTypedArray
decision?Related WebAssembly/design#1358.
Am asking the specific question if this is intended result, for testing, to at least have some certainty in a base case for workaround.
The text was updated successfully, but these errors were encountered: