This commit is contained in:
Jennifer Thakar 2020-05-21 13:48:01 -07:00 committed by GitHub
parent 41c2dc327b
commit d155f3518e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import '../utils.dart';
/// to have a constructor injected into their inheritance chain so that
/// `instanceof` works properly.
final Function booleanConstructor = () {
var constructor = allowInterop(([_]) {
var constructor = allowInterop(([dynamic _]) {
throw "new sass.types.Boolean() isn't allowed.\n"
"Use sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.";
});

View File

@ -16,7 +16,7 @@ import '../utils.dart';
/// to have a constructor injected into their inheritance chain so that
/// `instanceof` works properly.
final Function nullConstructor = () {
var constructor = allowInterop(([_]) {
var constructor = allowInterop(([dynamic _]) {
throw "new sass.types.Null() isn't allowed. Use sass.types.Null.NULL "
"instead.";
});