You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test/language/expressions/{arrow-function,async-arrow-function,async-function,async-generator,class,function,generators}/{restricted-properties,restricted-properties-module}.js (covering expressions like var f = function(){}; and generalizations, in script and module code)
test/language/statements/{async-function,async-generator,class,function,generators}/restricted-properties.js (covering statements like function f(){} and generalizations, in script and module code)
test/language/statements/class/definition/{methods-restricted-properties,methods-restricted-properties-module}.js (covering methods like var m = new (class { m(){} })().m, in script and module code)
likewise somewhere for generalizations—class static methods, object literal methods, and syntactic get/set accessors
test/built-ins/{AsyncFunction,AsyncGeneratorFunction,Function,GeneratorFunction}/instance-restricted-properties.js (each covering both $Function() and $Function('"use strict"'), or alternatively split into a pair of files)
Originally posted by @gibson042 in #4355 (comment)
I think we should modernize [test/built-ins/Function/StrictFunction_restricted-properties.js] as well, introducing a helper like
verifyNoRestrictedFunctionProperties
and using it at e.g.var f = function(){};
and generalizations, in script and module code)function f(){}
and generalizations, in script and module code)var m = new (class { m(){} })().m
, in script and module code)get
/set
accessors$Function()
and$Function('"use strict"')
, or alternatively split into a pair of files)and removing all other restricted-properties files.
The text was updated successfully, but these errors were encountered: