double is reserved keyword - #15110
Conversation
| assert(ch === 100/*'d'*/ || ch === 102/*'f'*/ || ch === 105 /*'i'*/); | ||
| #endif | ||
| // A double takes two 32-bit slots, and must also be aligned - the backend | ||
| // A double or readAsmConstArgsDouble takes two 32-bit slots, and must also be aligned - the backend |
There was a problem hiding this comment.
Did you mean o change the comment here?
There was a problem hiding this comment.
I just put the or there in case someone became confused as to what readAsmConstArgsDouble was.
There was a problem hiding this comment.
I don't think you want the "or readAsmConstArgsDouble" here since "A double" is referring the a type, not a variable name.
There was a problem hiding this comment.
Ok I can revert it
There was a problem hiding this comment.
Will hold off until we have this resolved
| // Memory resize rules: | ||
| // 1. Always increase heap size to at least the requested size, rounded up to next page multiple. | ||
| // 2a. If MEMORY_GROWTH_LINEAR_STEP == -1, excessively resize the heap geometrically: increase the heap size according to | ||
| // 2a. If MEMORY_GROWTH_LINEAR_STEP == -1, excessively resize the heap geometrically: increase the heap size according to |
There was a problem hiding this comment.
Personally I prefer not to mix semantic changes with whitespace changes (I think it makes PRs a little harder to review).
(For this reason I configure my editor to trim whitespace on demand rather than on save.. so it lets me decide when I want to do it).
Not a huge deal we can land this PR as is.
There was a problem hiding this comment.
Noted. I will change this in my editor as well.
I discussed this with @ethanalee earlier today, yeah - this is very strange. I was hoping you'd have a theory @sbc100 ... If not, then we should probably investigate that, as it suggests we are not actually running full @ethanalee was this the only error you had? That is, after fixing it, did |
Hi, @kripken and @sbc100 . Yep, I just double-checked and renaming the |
I'd like to investigate a little more. @ethanalee can you give me the exact command that you ran that generated the error? Were you running a test from our test suite? |
Yeah sure, I was basically running the I added the I ran this command: |
|
And that same test passed without #15104? |
|
Its seems like any test that includes |
It passed before because I didn't add the new @also_with_wasmfs decorator |
I am not too sure |
|
I tried to reproduce this by checkout out #15104 and running I verified that it does contains the But es-check does not complain: Can you check your |
Hmm, it's 5.2.4, it might be something on my end then or the version |
|
Can you run |
|
|
|
I can't get |
|
Hmm, the only thing I did differently was build with the
Then Output: |
Encountered an error while running
es-checkApparently
doubleis considered a reserved keyword, but it hasn't been since ES3?https://stackoverflow.com/questions/32171223/double-keyword-in-javascript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar
Error Message: