Skip to content

Commit

Permalink
fix wasm support
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Sep 15, 2024
1 parent a3ab7e7 commit 9d377b3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion http_browser/dart_test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
platforms:
- chrome
- vm
- vm
compilers:
- dart2js
- dart2wasm
2 changes: 1 addition & 1 deletion http_browser/lib/src/export/export.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export 'export_stub.dart' if (dart.library.html) 'export_web.dart';
export 'export_stub.dart' if (dart.library.js_interop) 'export_web.dart';
4 changes: 1 addition & 3 deletions http_browser/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tekartik_http_browser
description: Http browser
version: 0.7.2
version: 0.7.3
publish_to: none

environment:
Expand All @@ -12,7 +12,6 @@ dependencies:
url: https://github.com/tekartik/http.dart
path: http
ref: dart3a
version: '>=0.6.0'
http:
dev_dependencies:
process_run:
Expand All @@ -25,7 +24,6 @@ dev_dependencies:
url: https://github.com/tekartik/http.dart
path: http_test
ref: dart3a
version: '>=0.6.0'

dependency_overrides:
tekartik_http:
Expand Down
4 changes: 2 additions & 2 deletions http_browser/test/multiplatform/http_browser_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import 'package:test/test.dart';

Future main() async {
group('http_browser_api', () {
test('httpClientFactoryIo', () async {
test('httpClientFactoryBrowser', () async {
try {
httpClientFactoryBrowser;
expect(isRunningAsJavascript, isTrue);
expect(kDartIsWeb, isTrue);
} on UnimplementedError catch (_) {}
});
});
Expand Down

0 comments on commit 9d377b3

Please sign in to comment.