Skip to content

Commit

Permalink
fix blob bug attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
weizman committed Sep 24, 2024
1 parent ecf1add commit bcd121c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion snow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ function hookFile(win) {
}
// to pass 'File.prototype.isPrototypeOf(f)' test (https://github.com/LavaMoat/snow/issues/87#issue-1751534810)
Object.setPrototypeOf(native.prototype, File.prototype);
Object.setPrototypeOf(File.prototype, win[BLOB].prototype);
win[FILE] = File;
Object.defineProperty(native.prototype, 'constructor', {
value: File
Expand Down Expand Up @@ -1251,8 +1252,8 @@ function hook(win) {
}
function hookCreateObjectURL(win) {
hook(win);
hookBlob(win);
hookFile(win);
hookBlob(win);
hookMediaSource(win);
}
module.exports = hookCreateObjectURL;
Expand Down
Loading

0 comments on commit bcd121c

Please sign in to comment.