blob: 0554ab41733f543e75f099efb921bab18d38a75b [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../native_testing.dart';
import 'null_assertions_lib.dart';
// Implementation of `JSInterface` in a folder that is explicitly part of the
// allowlist for the `--native-null-assertions` flag. This file is treated as a
// web library, and therefore the `JS()` invocations should be checked.
@Native('CCCInWebLibrary')
class CCCInWebLibrary implements JSInterface {
String get name => JS('String', '#.name', this);
String? get optName => JS('String|Null', '#.optName', this);
}