diff --git a/examples b/examples index ab579c8..9a442eb 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit ab579c8551043deb45e60f08d228a8ed4f519597 +Subproject commit 9a442eb5d63e2b7703ccc94460a096bbcc41964f diff --git a/package-lock.json b/package-lock.json index 397fcdc..f9750de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@exact-realty/lot", - "version": "0.0.20", + "version": "0.0.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@exact-realty/lot", - "version": "0.0.20", + "version": "0.0.21", "license": "ISC", "devDependencies": { "@exact-realty/esbuild-plugin-closure-compiler": "^1.0.2", diff --git a/package.json b/package.json index e63a416..fa984a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@exact-realty/lot", - "version": "0.0.20", + "version": "0.0.21", "description": "Sandbox for isolating ECMAScript code", "main": "dist/index.cjs", "types": "dist/index.d.cts", diff --git a/src/untrusted/lib/hardenGlobals.ts b/src/untrusted/lib/hardenGlobals.ts index 235fc70..4d3fa67 100644 --- a/src/untrusted/lib/hardenGlobals.ts +++ b/src/untrusted/lib/hardenGlobals.ts @@ -210,13 +210,15 @@ const disableURLStaticMethods = () => { ['writable']: true, ['enumerable']: true, ['configurable']: true, - ['value']: String.bind(null), + ['value']: function () { + return ''; + }.bind(null), }, ['revokeObjectURL']: { ['writable']: true, ['enumerable']: true, ['configurable']: true, - ['value']: String.prototype.at.bind(''), + ['value']: function () {}.bind(null), }, }); };