Skip to content

Symbol isn't being attached #39

@jsumners

Description

@jsumners

https://runkit.com/embed/jngz13x7dgdl

var fluent = require("fluent-schema")
var schema = fluent
    .object()
    .prop('foo', fluent.string().enum(['foo']))
    .prop('bar', fluent.array()).valueOf()
console.log(schema[Symbol.for('fluent-schema-object')] === true)

Results in false being logged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions