Skip to content

doc: Mention --experimental-top-level-await flag - #33473

Closed
dfabulich wants to merge 1 commit into
nodejs:masterfrom
dfabulich:patch-1
Closed

doc: Mention --experimental-top-level-await flag#33473
dfabulich wants to merge 1 commit into
nodejs:masterfrom
dfabulich:patch-1

Conversation

@dfabulich

Copy link
Copy Markdown
Contributor
Checklist

@nodejs-github-botnodejs-github-bot added the doc Issues and PRs related to the documentations. label May 19, 2020
@juanarbol

Copy link
Copy Markdown
Member

I don't want to be against this change, but is it currently documented here

@dfabulich

Copy link
Copy Markdown
ContributorAuthor

I didn't mean to say that it's not documented, but the changelog should mention that it's behind the flag, I think.

@devsnek

Copy link
Copy Markdown
Member

@dfabulich

Copy link
Copy Markdown
ContributorAuthor

I filed a separate PR for nodejs.org.

@samceena

Copy link
Copy Markdown

The changelog does not mention that it's behind a flag if it needs to be, so it's confusing.
If it try: node --harmony-top-level-await 1.mjs it works, but if i try node 1.mjs, its not working, even if i have "type": "module" in the package.json file, so it's a little ambiguous. Can we write more about this in the doc?

Comment threaddoc/changelogs/CHANGELOG_V14.md Outdated
samceena
samceena approved these changes May 20, 2020
@zombieleet

Copy link
Copy Markdown
Contributor

@dfabulich it is also not specified in the cli doc https://nodejs.org/api/cli.html

@dfabulich

Copy link
Copy Markdown
ContributorAuthor

Good catch! I added documentation to cli.md.

@dfabulich

Copy link
Copy Markdown
ContributorAuthor

While updating cli.md, I briefly incorrectly claimed that --experimental-top-level-await works in NODE_OPTIONS, but then I realized it doesn't, so I filed PR #33495 to add it.

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 21, 2020
Comment threaddoc/changelogs/CHANGELOG_V14.md Outdated
@dfabulich

Copy link
Copy Markdown
ContributorAuthor

These tests were passing before I added that whitespace change; I'm about 99% sure this is a flaky build issue. (I don't see any way to rerun the build myself.)

@dfabulich
dfabulichforce-pushed the patch-1 branch 2 times, most recently from 26ca8c3 to dfaa01bCompareMay 22, 2020 04:11
@dfabulich

Copy link
Copy Markdown
ContributorAuthor

I'm about 99.999% sure this documentation PR didn't cause this failing test.

not ok 844 parallel/test-http-destroyed-socket-write2
---
duration_ms: 0.125
severity: fail
exitcode: 1
stack: |-
assert.js:103
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'ERR_STREAM_DESTROYED'
- 'ECONNRESET'
at ClientRequest.<anonymous> (/Users/runner/runners/2.262.1/work/node/node/node-v15.0.0-nightly2020-05-22xxxx/test/parallel/test-http-destroyed-socket-write2.js:66:16)
at ClientRequest.<anonymous> (/Users/runner/runners/2.262.1/work/node/node/node-v15.0.0-nightly2020-05-22xxxx/test/common/index.js:363:15)
at ClientRequest.emit (events.js:315:20)
at emitErrorNt (_http_outgoing.js:666:43)
at processTicksAndRejections (internal/process/task_queues.js:85:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'ERR_STREAM_DESTROYED',
expected: 'ECONNRESET',
operator: 'strictEqual'
}

@BridgeAR

Copy link
Copy Markdown
Member

@dfabulich we have multiple flaky tests. It is some times difficult to get the tests passing consistently on the amount of different systems and settings we support.

If you stumble upon one of those, you might want to check if there's a corresponding issue and if not, to open a new issue for the failure.

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 23, 2020
PR-URL: nodejs#33473
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR

Copy link
Copy Markdown
Member

Landed in c39467c 🎉

codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33473
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
codebytere pushed a commit that referenced this pull request Jun 18, 2020
PR-URL: #33473
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@codebyterecodebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33473
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.docIssues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@dfabulich@juanarbol@devsnek@samceena@zombieleet@BridgeAR@jasnell@cjihrig@codebytere@nodejs-github-bot