From 1ab16e2426819af2c534e8a99b98f244626de512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 5 Mar 2023 18:42:52 -0400 Subject: refactor(core): InternalModuleLoader checks if all files were used (#18005) This commit changes "InternalModuleLoader" from "deno_core" to store a list of used modules during snapshotting. If a module was not used during snapshotting "InternalModuleLoader" will panic in its "Drop" handler signaling to the embedder that they made a mistake somewhere. --- ext/node/polyfills/internal/blob.mjs | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 ext/node/polyfills/internal/blob.mjs (limited to 'ext/node/polyfills/internal/blob.mjs') diff --git a/ext/node/polyfills/internal/blob.mjs b/ext/node/polyfills/internal/blob.mjs deleted file mode 100644 index 1b685fad4..000000000 --- a/ext/node/polyfills/internal/blob.mjs +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -// Node's implementation checks for a symbol they put in the blob prototype -// Since the implementation of Blob is Deno's, the only option is to check the -// objects constructor -export function isBlob(object) { - return object instanceof Blob; -} -- cgit v1.2.3