diff --git a/ext/node/polyfill.rs b/ext/node/polyfill.rs index b334d2d341..8cf1cec70d 100644 --- a/ext/node/polyfill.rs +++ b/ext/node/polyfill.rs @@ -101,6 +101,10 @@ pub static SUPPORTED_BUILTIN_NODE_MODULES: &[NodeModulePolyfill] = &[ name: "http", specifier: "ext:deno_node/http.ts", }, + NodeModulePolyfill { + name: "http2", + specifier: "ext:deno_node/http2.ts", + }, NodeModulePolyfill { name: "https", specifier: "ext:deno_node/https.ts", diff --git a/ext/node/polyfills/02_init.js b/ext/node/polyfills/02_init.js index d419c3bcaa..b8070d50f7 100644 --- a/ext/node/polyfills/02_init.js +++ b/ext/node/polyfills/02_init.js @@ -39,7 +39,7 @@ function initialize( // get node's globalThis ObjectDefineProperty(globalThis, nodeGlobalThisName, { enumerable: false, - writable: false, + writable: true, value: nodeGlobalThis, }); // FIXME(bartlomieju): not nice to depend on `Deno` namespace here