Repository navigation
node-fallbacks: bind free process and Buffer in the browser polyfills, fix util, process and timers, make require() of assert and events callable #41533
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
Open
robobun
wants to merge
26
commits into
robobun/44155f9f/crypto-polyfill-browser-field
Choose a base branch
from
robobun/f06787a0/browser-polyfills-globals-and-exports
base: robobun/44155f9f/crypto-polyfill-browser-field
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,053
−163
Open
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1049fac
Fix browser polyfills: bind process/Buffer, util and process bugs, na…
robobun 776cab9
test: check the AssertionError by instanceof, not by constructor name
robobun 5331c88
node-fallbacks: shorten comments
robobun 29b536c
node-fallbacks: add promises to the timers default export
robobun bf699b0
node-fallbacks: build events as CommonJS, add default exports to os, …
robobun a52540c
node-fallbacks: keep util and path free of node globals, lint the pol…
robobun 24605c9
node-fallbacks: pick the CommonJS format from the source, not from a …
robobun 1e8792a
node-fallbacks: drain nextTick in batches so a finished tick can be c…
robobun 30db02e
node-fallbacks: shorten a comment in process.js
robobun b502c71
node-fallbacks: give the nextTick TypeError a code; the chain test fo…
robobun 59851bb
node-fallbacks: describe a bad nextTick callback without coercing it
robobun 24725ef
node-fallbacks: add the polyfills to the files that `bun lint` checks
robobun fdcaeb9
test: a stream's ticks use the queue of the process polyfill
robobun 5afaca2
node-fallbacks: the timers polyfill does not pass its own `this` to t…
robobun fb4e39e
node-fallbacks: give the timers polyfill's setTimeout and setImmediat…
robobun 345c9cd
node-fallbacks: add `constants` to the zlib polyfill
robobun 53dd2e6
Merge #41524 (bundle the polyfills for the browser target)
robobun fa96952
test: a stream's ticks no longer run on the host process
robobun 67b3573
node-fallbacks: process.emitWarning prints an Error with its own name
robobun cb72bc9
Merge #41524 (fill shared memory in randomFill and randomFillSync)
robobun b00eb3c
node-fallbacks: keep the host's process, no binding named after a glo…
robobun eedb9c6
[autofix.ci] apply automated fixes
autofix-ci[bot] 84096bc
test: a dev server client module uses the stream, assert and zlib pol…
robobun c33f838
node-fallbacks: a host process needs nextTick, querystring and util k…
robobun 3516579
[autofix.ci] apply automated fixes
autofix-ci[bot] 6141181
Merge #41524 (node's argument rules for the hand-written crypto funct…
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,2 @@ | ||
| import * as assert from "./node_modules/assert"; | ||
|
|
||
| export const { | ||
| AssertionError, | ||
| CallTracker, | ||
| deepEqual, | ||
| deepStrictEqual, | ||
| doesNotMatch, | ||
| doesNotReject, | ||
| doesNotThrow, | ||
| equal, | ||
| fail, | ||
| ifError, | ||
| match, | ||
| notDeepEqual, | ||
| notDeepStrictEqual, | ||
| notEqual, | ||
| notStrictEqual, | ||
| ok, | ||
| rejects, | ||
| strict, | ||
| strictEqual, | ||
| throws, | ||
| } = assert; | ||
| export default assert; | ||
| // CommonJS so that `require("assert")` returns the callable function. | ||
| module.exports = require("./node_modules/assert"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,24 @@ | ||
| // Hardcoded module "node:console" | ||
| export const { | ||
| assert, | ||
| clear, | ||
| count, | ||
| countReset, | ||
| debug, | ||
| dir, | ||
| dirxml, | ||
| error, | ||
| group, | ||
| groupCollapsed, | ||
| groupEnd, | ||
| info, | ||
| log, | ||
| table, | ||
| time, | ||
| timeEnd, | ||
| timeLog, | ||
| timeStamp, | ||
| trace, | ||
| warn, | ||
| } = console; | ||
| export default console; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| import domain from "domain-browser"; | ||
| export var { create, createDomain } = domain; | ||
| export default domain; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.