-
Static interop currently works for primitives, lists and JS Objects.
However, it does not work for Dart's `DateTime` type.
Consider the following code sample:
```
// JS
function getDate() {…
-
**Describe the issue you're seeing**
External getters don't work with JS `let` and `const` declarations.
It does work, however, with `var` declaration.
**Does it happen in Dartium or when compile…
-
Until now all JS-interop errors are reported by a CFE transformer that we use in ddc, dart2wasm, and dart2ms. These check the validity of certain JS-interop idioms and APIs.
We are reaching a level…
-
Work is being done to add WebKit to interop tests here https://github.com/libp2p/js-libp2p/pull/1799 however per https://github.com/libp2p/js-libp2p/issues/2007 this effort is currently blocked
-
### Bug description
Building for wasm not supported
### Steps to reproduce
Flutter build web --wasm
### Code sample
Code sample
```dart
import 'package:flutter/material.dart';
import 'packag…
-
Got `Uncaught Error: Attempting to box non-Dart object.`:
```dart
import 'dart:js_interop';
void main() {
print([1].toJSBox); // here
}
```
WASM prints `[object Object]`.
Dart 3.3.0 on "…
-
**Describe the issue you're seeing**
I am trying to pass a Dart class' constructor reference to the `window.customElements.define` function but there seems to be no way of doing it.
The error on…
-
When I compile the following code with dart2js:
```dart
import 'package:js/js.dart';
@JS('Buffer.from')
external Buffer bufferFrom(String source, String encoding);
@JS()
class Buffer {
…
-
# 长期发展
项目处于早期规划阶段,可能会随时重构
- [x] 项目前端总体使用 Next.js 进行开发(未来保持不变)
- [x] 由 JS 重构为 TS 并功能不完整重写(JS 版未放出)
- [ ] 决定协议库最终实现是**保持现状**或**自行实现**([kotlin-jvm-js-interop](https://github.com/Cdm2883/kotlin-jv…
-
There are now 3 different peerjs client implementations that I am aware of. The JS/TS one hosted here. The [python port](https://github.com/ambianic/peerjs-python), and now a new [Go port](https://git…