Clarified deprecation message for this in describes

This commit is contained in:
Steve Gravrock
2021-10-12 15:40:13 -07:00
parent 8cadfbd829
commit c1db8f2f82
3 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
/* eslint-disable compat/compat */
// TODO: Remove this in the next major release.
getJasmineRequireObj().deprecatingThisProxy = function(j$) {
var msg = "Access to 'this' in describe functions is deprecated.";
var msg =
"Access to 'this' in describe functions (and in arrow functions " +
'inside describe functions) is deprecated.';
try {
new Proxy({}, {});