feabbd99a2
The stub can be invoked from isolategroup-bound code. Also require set experimental-shared-data flag when using IsolateGroup.runSync. TEST=vm/dart/shared_syncstar_test BUG=https://github.com/dart-lang/sdk/issues/61137 Change-Id: I2af27f3f9eeb0dd0dbdfe2e4ec5b162a8e0bd816 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441260 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
19 lines
512 B
Dart
19 lines
512 B
Dart
// Copyright (c) 2025, 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.
|
|
//
|
|
// VMOptions=--experimental-shared-data
|
|
//
|
|
import 'dart:_internal' show VMInternalsForTesting;
|
|
import 'package:dart_internal/isolate_group.dart' show IsolateGroup;
|
|
|
|
Iterable<int> syncStar() sync* {
|
|
yield 0;
|
|
}
|
|
|
|
main() {
|
|
IsolateGroup.runSync(() {
|
|
syncStar().iterator.moveNext();
|
|
});
|
|
}
|