evaluateJS function

dynamic evaluateJS(
  1. String code,
  2. Map<String, dynamic> context, {
  3. int timeoutMs = 5000,
})

Stub implementation for JavaScript evaluator.

This file is used when neither dart:html nor dart:io is available. In practice, this should never be used since all Flutter targets support either web or mobile/desktop.

Implementation

dynamic evaluateJS(
  String code,
  Map<String, dynamic> context, {
  int timeoutMs = 5000,
}) {
  throw UnsupportedError('JavaScript evaluation not supported on this platform');
}