From c49eee551fdf78ab0230ec30d4537c98dd5d0c80 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Tue, 31 Aug 2021 19:33:03 +0200 Subject: feat(workers): Make the `Deno` namespace configurable and unfrozen (#11888) This is the worker counterpart of PR #11062. --- runtime/js/06_util.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'runtime/js/06_util.js') diff --git a/runtime/js/06_util.js b/runtime/js/06_util.js index b6a3c3438..97c0adea4 100644 --- a/runtime/js/06_util.js +++ b/runtime/js/06_util.js @@ -3,7 +3,6 @@ ((window) => { const { - ObjectDefineProperty, StringPrototypeReplace, TypeError, Promise, @@ -55,18 +54,6 @@ return promise; } - function immutableDefine( - o, - p, - value, - ) { - ObjectDefineProperty(o, p, { - value, - configurable: false, - writable: false, - }); - } - // Keep in sync with `fromFileUrl()` in `std/path/win32.ts`. function pathFromURLWin32(url) { let p = StringPrototypeReplace( @@ -164,7 +151,6 @@ createResolvable, assert, AssertionError, - immutableDefine, pathFromURL, writable, nonEnumerable, -- cgit v1.2.3