blob: 7f25a798c4f96902cf24ff6edcc436fc3ab925d5 [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.
library static_interop;
import 'package:js/js.dart';
external void eval(String code);
class StaticJSClass {
external StaticJSClass();
factory StaticJSClass.factory(StaticJSClass _) {
return StaticJSClass();
void setUp() {
eval('''function JSClass() {}''');