fix(cli/rt): make some web API constructors illegal at runtime (#7468)

This commit is contained in:
Nayeem Rahman 2020-09-19 22:30:59 +01:00 committed by GitHub
parent 79e5b57663
commit aaa5e6613a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 106 additions and 15 deletions

View file

@ -235,7 +235,7 @@ delete Object.prototype.__proto__;
crypto: util.readOnly(crypto),
dispatchEvent: util.readOnly(EventTarget.prototype.dispatchEvent),
fetch: util.writable(fetch.fetch),
performance: util.writable(new performance.Performance()),
performance: util.writable(performance.performance),
removeEventListener: util.readOnly(
EventTarget.prototype.removeEventListener,
),