diff --git a/ext/webstorage/01_webstorage.js b/ext/webstorage/01_webstorage.js index bdd2cfc414440d..19aca532a08c11 100644 --- a/ext/webstorage/01_webstorage.js +++ b/ext/webstorage/01_webstorage.js @@ -42,14 +42,7 @@ function createStorage(persistent) { if (ReflectHas(target, key)) { const value = target[key]; if (typeof value === "function") { - const func = FunctionPrototypeBind(value, target); - // Remove "bound " prefix from function name - ReflectDefineProperty(func, "name", { - __proto__: null, - value: value.name, - configurable: true, - }); - return func; + return FunctionPrototypeBind(value, target); } return value; } diff --git a/tests/wpt/runner/expectation.json b/tests/wpt/runner/expectation.json index 6140f4379d03c2..5776fdb486b212 100644 --- a/tests/wpt/runner/expectation.json +++ b/tests/wpt/runner/expectation.json @@ -9789,7 +9789,7 @@ "event_constructor.window.html": false, "event_initstorageevent.window.html": false, "missing_arguments.window.html": true, - "storage_builtins.window.html": true, + "storage_builtins.window.html": false, "storage_clear.window.html": true, "storage_functions_not_overwritten.window.html": true, "storage_getitem.window.html": true,