blob: ae0fff427aedfc043373b3643ea3db29fe6fd0c3 [file] [log] [blame]
// Copyright (c) 2023, 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.
/// Regression for https://github.com/dart-lang/sdk/issues/51307
///
/// The interceptor for JavaScriptObjects was not emitted if the only
/// uses were implicit through a cast and no direct instantiation.
import 'package:js/js.dart';
import 'package:js/js_util.dart' as js_util;
@JS()
@staticInterop
class A {}
extension E on A {
external int get value;
}
void main() => js_util.jsify(<String, Object>{'value': 1}) as A;