Skip to content

Commit

Permalink
well
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Nov 23, 2024
1 parent b72a126 commit 887100e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions ext/webstorage/01_webstorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/wpt/runner/expectation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 887100e

Please sign in to comment.