Skip to content

Cannot compile validator package in latest version of Dart #4

@nyvelius

Description

@nyvelius
[SEVERE] build_web_compilers|ddc on package:validator/validator.module (cached):
Error compiling dartdevc module:validator|lib/validator.ddc.js

[error] The getter 'NAN' isn't defined for the class 'double'. (package:validator/src/sanitizer.dart, line 30, col 19)
[error] The getter 'NAN' isn't defined for the class 'double'. (package:validator/src/sanitizer.dart, line 48, col 21)
[error] Undefined name 'JSON'. (package:validator/src/validator.dart, line 484, col 5)

Please fix all errors before compiling (warnings are okay).

Dart version: Dart VM version: 2.0.0-dev.69.5 (Tue Jul 31 15:05:14 2018 +0200) on "macos_x64"

Looks like it's just a matter of changing NAN and JSON to lower case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions