-
I'm trying to call navigator.usb.getDevices()
This is my Promise type:
```dart
@JS()
@anonymous
class Promise {
external void then(Function onFulfilled, Function onRejected);
}
````
…
-
```dart
import 'dart:async';
class Disposable {
void dispose() {
print("Dispose!");
}
}
void someFunctionThatMayThrow() {
print("someFunctionThatMayThrow called");
}
Futu…
-
http://dart-lang.github.io/linter/lints/use_string_buffers.html
-
As much as I dislike `runtimeType`, I can see people using it for doing `if (o.runtimeType == SomeType) ...`.
That's expensive because it allocates two `Type` objects reifying the type information …
-
Another syntax-related issue concerns **comma** support:
**`dart2js` and `dart` (VM tool)**
allow to insert the comma in an environment declaration value (also without quote, which are instead req…
-
dart 2.9.3
angular 5.3.1
out of nowhere I can't serve or build a project.
it basically gives you no clue of what is happening.
```
[WARNING]angular:angular on lib/wizard/wizard.dart: Compilin…
-
Attempting to import a getter named `x` and setter named `x=` from different libraries produces the following analyzer warning at the location where the setter is used: `'x' cannot be used as a setter…
-
I am having a strange error with this package after building with dart2js. I believe the error most likley belongs to dart2js so I filed the detailed bug report over at: https://github.com/dart-lang/s…
-
In DCC, exports are currently resolved and substituted at compile time just like imports. The only re-export exposed to JS is the main() method.
We should add library level annotations specifying t…
-
When a constant is too large and needs to be lazily allocated and initialized we generate a function for it.
These functions currently get their names from the `Constant` kernel node's `toString`: …
osa1 updated
5 months ago