[Pkg-javascript-commits] [less.js] 04/14: disallow weird type conversion
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:29:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.3.1
in repository less.js.
commit 379968773e76d41859d483b40e2f7f5065a9e644
Author: Luke Page <luke.a.page at gmail.com>
Date: Tue Jan 27 17:40:18 2015 +0000
disallow weird type conversion
---
.jscsrc | 2 +-
lib/less/parser/parser.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.jscsrc b/.jscsrc
index c42a02e..c192399 100644
--- a/.jscsrc
+++ b/.jscsrc
@@ -1,5 +1,5 @@
{
- "disallowImplicitTypeConversion": [/*"numeric", "boolean", "binary", "string"*/], /* should be true*/
+ "disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowTrailingWhitespace": true
diff --git a/lib/less/parser/parser.js b/lib/less/parser/parser.js
index 2273869..a56dc87 100644
--- a/lib/less/parser/parser.js
+++ b/lib/less/parser/parser.js
@@ -1607,7 +1607,7 @@ Parser.serializeVars = function(vars) {
if (Object.hasOwnProperty.call(vars, name)) {
var value = vars[name];
s += ((name[0] === '@') ? '' : '@') + name +': '+ value +
- ((('' + value).slice(-1) === ';') ? '' : ';');
+ ((String(value).slice(-1) === ';') ? '' : ';');
}
}
--
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