mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
prefer “exclude” language for excluded entities
See for example: * https://9to5google.com/2020/06/12/google-android-chrome-blacklist-blocklist-more-inclusive/ * https://thenextweb.com/dd/2020/06/15/github-plans-to-replace-racially-insensitive-terms-like-master-and-whitelist/ Change-Id: Id40e8b20f8dcab6db291159c33db5197aedf9fae Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151304 Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
parent
09ea885dcd
commit
c68c06996a
2 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ import 'dart:math';
|
|||
import 'dart:mirrors';
|
||||
import 'dart:typed_data';
|
||||
|
||||
var blacklist = [
|
||||
var excludeList = [
|
||||
'dart.io.exit',
|
||||
'dart.io.exitCode',
|
||||
'dart.io.sleep',
|
||||
|
@ -270,7 +270,7 @@ void fuzz(Candidate c) {
|
|||
ObjectMirror receiver = c.mirror;
|
||||
MethodMirror method = randomMethodOf(receiver);
|
||||
if (method == null) return;
|
||||
if (blacklist.contains(MirrorSystem.getName(method.qualifiedName))) return;
|
||||
if (excludeList.contains(MirrorSystem.getName(method.qualifiedName))) return;
|
||||
|
||||
List positional = randomPositionalArgumentsFor(method);
|
||||
Map named = randomNamedArgumentsFor(method);
|
||||
|
|
|
@ -18,7 +18,7 @@ import 'dart:math';
|
|||
import 'dart:mirrors';
|
||||
import 'dart:typed_data';
|
||||
|
||||
var blacklist = [
|
||||
var excludeList = [
|
||||
'dart.io.exit',
|
||||
'dart.io.exitCode',
|
||||
'dart.io.sleep',
|
||||
|
@ -270,7 +270,7 @@ void fuzz(Candidate c) {
|
|||
ObjectMirror receiver = c.mirror;
|
||||
MethodMirror method = randomMethodOf(receiver);
|
||||
if (method == null) return;
|
||||
if (blacklist.contains(MirrorSystem.getName(method.qualifiedName))) return;
|
||||
if (excludeList.contains(MirrorSystem.getName(method.qualifiedName))) return;
|
||||
|
||||
List positional = randomPositionalArgumentsFor(method);
|
||||
Map named = randomNamedArgumentsFor(method);
|
||||
|
|
Loading…
Reference in a new issue