| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9d918d9 commit 0783663
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -402,6 +402,7 @@ function setupGlobalProxy() { | |||
| 402 | 402 | enumerable: false, | |
| 403 | 403 | configurable: true | |
| 404 | 404 | }); | |
| 405 | + globalThis.global = globalThis; | ||
| 405 | 406 | } | |
| 406 | 407 | ||
| 407 | 408 | function setupBuffer() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -342,11 +342,6 @@ MaybeLocal<Value> Environment::BootstrapInternalLoaders() { | |||
| 342 | 342 | MaybeLocal<Value> Environment::BootstrapNode() { | |
| 343 | 343 | EscapableHandleScope scope(isolate_); | |
| 344 | 344 | ||
| 345 | - Local<Object> global = context()->Global(); | ||
| 346 | - // TODO(joyeecheung): this can be done in JS land now. | ||
| 347 | - global->Set(context(), FIXED_ONE_BYTE_STRING(isolate_, "global"), global) | ||
| 348 | - .Check(); | ||
| 349 | - | ||
| 350 | 345 | // process, require, internalBinding, primordials | |
| 351 | 346 | std::vector<Local<String>> node_params = { | |
| 352 | 347 | process_string(), | |
| Back | FazBrowse Home | New Git URL |
0 commit comments