Skip to content

Commit

Permalink
Fix static analysis issues for dart 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Dec 12, 2024
1 parent aa396a8 commit 2d1e04d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions lib/src/embedded/js/concurrency.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

import 'dart:js_interop';

import 'js.dart';

@JS('os.cpus')
external JSArray _cpus();

Expand Down
2 changes: 1 addition & 1 deletion lib/src/embedded/js/isolate_main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import 'js.dart';
external JSArray<JSAny?> get _argv;

(String, JSArray<JSString>) isolateMain() {
return (_argv[1]! as String, _argv.slice(2) as JSArray<JSString>);
return ((_argv[1]! as JSString).toDart, _argv.slice(2) as JSArray<JSString>);
}
2 changes: 0 additions & 2 deletions lib/src/embedded/js/js.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ extension JSTypedArrayExtension on JSTypedArray {
}

extension JSArrayExtension<T extends JSAny?> on JSArray<T> {
external int get length;
external T operator [](int index);
external JSArray<T> slice([int start, int end]);
}
2 changes: 1 addition & 1 deletion pkg/sass_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: ">=3.3.0 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
sass: 1.83.0
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ executables:
sass: sass

environment:
sdk: ">=3.3.0 <4.0.0"
sdk: ">=3.6.0 <4.0.0"

dependencies:
args: ^2.0.0
Expand Down

0 comments on commit 2d1e04d

Please sign in to comment.