OverconstrainedError.constraint

Draft

This page is not complete.

Secure context

This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The constraint read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the contraint that was not satisfied.

Syntax

var constraint = Overconstrainederror.constraint;

Value

A String

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'constraint' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

BCD tables only load in the browser