blob: a5c93c43bbcc0319c10da02b10aab13b8c661409 [file] [log] [blame]
// Copyright (c) 2021, 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.
@JS()
library static_interop;
import 'package:js/js.dart';
@JS()
external void eval(String code);
@JS('JSClass')
@staticInterop
class StaticJSClass {
external StaticJSClass();
factory StaticJSClass.factory() {
return StaticJSClass();
}
}
void setUp() {
eval('''function JSClass() {}''');
}