[Pkg-javascript-commits] [less.js] 09/88: Error handlers for min/max functions
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:22:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v1.7.0
in repository less.js.
commit 7fc12014f281fa23b3757faff0d579930a51c335
Author: deviprsd21 <deviprsd21 at gmail.com>
Date: Sun Jan 12 10:47:55 2014 +0530
Error handlers for min/max functions
---
lib/less/functions.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/less/functions.js b/lib/less/functions.js
index 68d93a3..c6ab234 100644
--- a/lib/less/functions.js
+++ b/lib/less/functions.js
@@ -281,6 +281,9 @@ tree.functions = {
values[unit] = values[""] !== undefined && unit !== "" && unit === unitStatic ? values[""] : values[unit];
j = values[unit];
if (j === undefined) {
+ if(unitStatic !== undefined && unit !== unitStatic) {
+ throw{ type: "Argument", message: "incompatible types" };
+ }
values[unit] = order.length;
order.push(current);
continue;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list