mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
fix(npm): make http2 module available, make 'nodeGlobalThisName' writable (#19092)
This commit is contained in:
parent
90ed487965
commit
ddf59b5345
2 changed files with 5 additions and 1 deletions
|
@ -101,6 +101,10 @@ pub static SUPPORTED_BUILTIN_NODE_MODULES: &[NodeModulePolyfill] = &[
|
||||||
name: "http",
|
name: "http",
|
||||||
specifier: "ext:deno_node/http.ts",
|
specifier: "ext:deno_node/http.ts",
|
||||||
},
|
},
|
||||||
|
NodeModulePolyfill {
|
||||||
|
name: "http2",
|
||||||
|
specifier: "ext:deno_node/http2.ts",
|
||||||
|
},
|
||||||
NodeModulePolyfill {
|
NodeModulePolyfill {
|
||||||
name: "https",
|
name: "https",
|
||||||
specifier: "ext:deno_node/https.ts",
|
specifier: "ext:deno_node/https.ts",
|
||||||
|
|
|
@ -39,7 +39,7 @@ function initialize(
|
||||||
// get node's globalThis
|
// get node's globalThis
|
||||||
ObjectDefineProperty(globalThis, nodeGlobalThisName, {
|
ObjectDefineProperty(globalThis, nodeGlobalThisName, {
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
writable: false,
|
writable: true,
|
||||||
value: nodeGlobalThis,
|
value: nodeGlobalThis,
|
||||||
});
|
});
|
||||||
// FIXME(bartlomieju): not nice to depend on `Deno` namespace here
|
// FIXME(bartlomieju): not nice to depend on `Deno` namespace here
|
||||||
|
|
Loading…
Reference in a new issue