whitelist.js: remove RegExp.prototype.compile properly
The line was in the wrong place, so were removing Array.prototype.compile
instead, which doesn't even exist.
tame-regexp.js removed this anyways.
MODIFY
src/bundle/whitelist.js
src/bundle/whitelist.js
@@ -588,6 +588,9 @@ export default {
unicode: 'maybeAccessor', // ES-Harmony
dotAll: 'maybeAccessor', // proposed ES-Harmony
+ // B.2.5
+ compile: false, // UNSAFE. Purposely suppressed
+
// 21.2.6 instances
lastIndex: '*',
options: '*' // non-std
@@ -630,9 +633,6 @@ export default {
unshift: j,
values: t, // ES-Harmony
- // B.2.5
- compile: false, // UNSAFE. Purposely suppressed
-
// 22.1.4 instances
length: '*'
}
@@ -833,6 +833,7 @@ export default {
escape: t,
unescape: t,
+ // B.2.5 (RegExp.prototype.compile) is marked 'false' up in 21.2
// Other

whitelist.js: remove RegExp.prototype.compile properly

The line was in the wrong place, so were removing Array.prototype.compile
instead, which doesn't even exist.

tame-regexp.js removed this anyways.