1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-05-29 09:28:06 +02:00

Intercepting broken on getter.

Issue mentioned in #215
This commit is contained in:
kkapsner 2018-07-28 13:44:21 +02:00
parent b91d2f17b1
commit 7f1fe0ed1c

View File

@ -290,7 +290,10 @@
}
else {
descriptor.get = exportFunction(function(){
return changedFunction.fakeGenerator(checker);
return exportFunction(
changedFunction.fakeGenerator(checker),
window
);
}, window);
}
Object.defineProperty(constructor.prototype, name, descriptor);