js_interpreter
A comprehensive, pure Dart JavaScript interpreter supporting ES6+ features. Perfect for embedding JavaScript execution in Dart/Flutter applications.
0.0.5
2.8K downloads/mo
#4764 most downloaded on pub.dev
kodjodevf/js_interpreter
What this package is like to depend on
Last release 3 months ago
15 May 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
6 months old
5 releases · first in 2026
5 releases in the last 12 months
see the full history below
Release timeline
5 releases · Feb 2026 to May 2026Releases
latest 5-
0.0.515 May 2026Release notes
Open source →- complete RegExp named groups support, including duplicate named groups, Unicode group names, and matchAll integration
- improve RegExp built-in conformance for exec, Symbol.match, Symbol.replace, and Symbol.split
- align RegExp match results and groups objects more closely with ECMAScript semantics
-
0.0.421 Apr 2026Release notes
Open source →- add support for capturing destructuring references and validation for array/object destructuring
- enhance destructuring assignment support and validation
- enhance global eval bindings to support top-level lexical shadowing
-
0.0.314 Apr 2026 -
0.0.211 Feb 2026Release notes
Open source →Features
- ES2024 Support: Implemented Explicit Resource Management (
usingandawait usingdeclarations). - ES2015 Support: Added Tail Call Optimization (TCO).
- Core Improvements:
- Implemented proper
withstatement environment handling andSymbol.unscopablessupport. - Enhanced
Promisemicrotask queue and async function execution logic. - Added support for dynamic imports.
- Improved
Functionconstructor to supportreturnstatements in dynamically created functions.
- Implemented proper
Compliance & Bug Fixes
- Parser & Syntax:
- Added comprehensive "Early Errors" validation for functions, classes, and loops.
- Fixed Automatic Semicolon Insertion (ASI) to correctly handle all Unicode line terminators (LF, CR, LS, PS).
- Improved validation for
breakandcontinuelabels. - Fixed strict mode inheritance in
eval()and strict mode-specific validations.
- Data Models:
- Improved
JSValueto DartMap/Listconversion with support for enumerable properties and recursive conversion. - Refined error object detection logic.
- Improved
- Execution:
- Fixed completion values for control structures (blocks, loops, switch).
- Improved lexical scoping for
letandconstinforloops andswitchstatements. - Fixed
thisbinding in async functions and arrow functions.
Testing
- Significantly improved
test262test runner compatibility. - Fixed numerous bugs discovered through
test262compliance testing.
- ES2024 Support: Implemented Explicit Resource Management (
-
0.0.102 Feb 2026