-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ready for merge] bugfix:
util.inspect
returns a string and obscure…
…s some errors (#306) * bugfix: `util.inspect` returns a string and obscures some errors * Fix toffee tests * Fix stylus tests * Fix myth tests * Fix jade tests * Fix swig tests * Fix dot tests * Fix eco tests * Fix csso tests * Fix scss tests * Fix for Yarn tests
- Loading branch information
Showing
22 changed files
with
67 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/*! keep this comment */.hello{margin:0;color:silver;border:1px solid} | ||
/*! keep this comment */ | ||
.hello{margin:0;color:silver;border:1px solid} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.hello{color:red}.hello{padding:10px} | ||
.hello{color:red}.hello{padding:10px} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.hello{foo:bar;color:green} | ||
.hello{foo:bar;color:green} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div>Jake</div><div>Jake who?</div> | ||
<div>Jake</div><div>31</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p>welcome to pen island</p><p>wow opts</p> | ||
<p>precompilez</p><p>wow opts</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,43 @@ | ||
function (__obj) { | ||
if (!__obj) __obj = {}; | ||
var __out = [], __capture = function(callback) { | ||
var out = __out, result; | ||
__out = []; | ||
callback.call(this); | ||
result = __out.join(''); | ||
__out = out; | ||
return __safe(result); | ||
}, __sanitize = function(value) { | ||
if (value && value.ecoSafe) { | ||
return value; | ||
} else if (typeof value !== 'undefined' && value != null) { | ||
return __escape(value); | ||
} else { | ||
return ''; | ||
} | ||
}, __safe, __objSafe = __obj.safe, __escape = __obj.escape; | ||
__safe = __obj.safe = function(value) { | ||
if (value && value.ecoSafe) { | ||
return value; | ||
} else { | ||
if (!(typeof value !== 'undefined' && value != null)) value = ''; | ||
var result = new String(value); | ||
result.ecoSafe = true; | ||
return result; | ||
} | ||
module.exports = function(__obj) { | ||
var _safe = function(value) { | ||
if (typeof value === 'undefined' && value == null) | ||
value = ''; | ||
var result = new String(value); | ||
result.ecoSafe = true; | ||
return result; | ||
}; | ||
if (!__escape) { | ||
__escape = __obj.escape = function(value) { | ||
return ('' + value) | ||
.replace(/&/g, '&') | ||
.replace(/</g, '<') | ||
.replace(/>/g, '>') | ||
.replace(/"/g, '"'); | ||
return (function() { | ||
var __out = [], __self = this, _print = function(value) { | ||
if (typeof value !== 'undefined' && value != null) | ||
__out.push(value.ecoSafe ? value : __self.escape(value)); | ||
}, _capture = function(callback) { | ||
var out = __out, result; | ||
__out = []; | ||
callback.call(this); | ||
result = __out.join(''); | ||
__out = out; | ||
return _safe(result); | ||
}; | ||
} | ||
(function() { | ||
(function() { | ||
__out.push('Woah look, a '); | ||
_print(_safe('Woah look, a ')); | ||
|
||
__out.push(__sanitize(thing)); | ||
_print(thing); | ||
|
||
}).call(this); | ||
|
||
}).call(__obj); | ||
__obj.safe = __objSafe, __obj.escape = __escape; | ||
return __out.join(''); | ||
} | ||
return __out.join(''); | ||
}).call((function() { | ||
var obj = { | ||
escape: function(value) { | ||
return ('' + value) | ||
.replace(/&/g, '&') | ||
.replace(/</g, '<') | ||
.replace(/>/g, '>') | ||
.replace(/"/g, '"'); | ||
}, | ||
safe: _safe | ||
}, key; | ||
for (key in __obj) obj[key] = __obj[key]; | ||
return obj; | ||
})()); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p>ejs yah</p><p>wow opts</p> | ||
<p>eco yah</p><p>wow opts</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.test { | ||
content: 'bar'; } | ||
content: "bar"; } | ||
.test .foo { | ||
color: blue; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.foo { | ||
color: 'red'; } | ||
color: "red"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
foo { | ||
bar: 'red'; } | ||
bar: "red"; } |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.foo { | ||
color: green; | ||
} | ||
|
||
.red { | ||
color: #00f; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.testing { | ||
background-color: #0000BB | ||
background-color: #0000FF; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.testing | ||
background-color: rdefine.blue1 | ||
background-color: unquote(rdefine.blue1) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<li>mop</li><li>trashbin</li><li>flashlight</li> | ||
<li>mop</li><li>trash bin</li><li>flashlight</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters