Skip to content

node-sass compat: creating sass values without use of new operator #591

@chriseppstein

Description

@chriseppstein

In node-sass, you can create a sass value without the use of new. For example:

let sass = require("node-sass");
let assert = require("assert");
let sassString = sass.types.String("my-string");
assert(sassString instanceof sass.types.String); // passes

This is true for all the Sass types Null, Boolean, Color, String, Number, List, and Map.

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaScriptIssues particular to the Node.js distributionblockedWaiting on another issue to be fixedbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions