Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
be2373ff
Commit
be2373ff
authored
Apr 29, 2014
by
Johannes Ewald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using the sourceMap-property of the stats-object for callback instead of re-creating it
parent
8114285e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
binding.cpp
binding.cpp
+1
-8
No files found.
binding.cpp
View file @
be2373ff
...
@@ -105,17 +105,10 @@ void MakeCallback(uv_work_t* req) {
...
@@ -105,17 +105,10 @@ void MakeCallback(uv_work_t* req) {
if
(
error_status
==
0
)
{
if
(
error_status
==
0
)
{
// if no error, do callback(null, result)
// if no error, do callback(null, result)
Handle
<
Value
>
source_map
;
if
(
ctx_w
->
fctx
&&
ctx_w
->
fctx
->
options
.
source_comments
==
SASS_SOURCE_COMMENTS_MAP
)
{
source_map
=
String
::
New
(
ctx_w
->
fctx
->
source_map_string
);
}
else
{
source_map
=
Null
();
}
val
=
ctx_w
->
ctx
?
NanNewLocal
(
String
::
New
(
ctx_w
->
ctx
->
output_string
))
:
NanNewLocal
(
String
::
New
(
ctx_w
->
fctx
->
output_string
));
val
=
ctx_w
->
ctx
?
NanNewLocal
(
String
::
New
(
ctx_w
->
ctx
->
output_string
))
:
NanNewLocal
(
String
::
New
(
ctx_w
->
fctx
->
output_string
));
Local
<
Value
>
argv
[]
=
{
Local
<
Value
>
argv
[]
=
{
NanNewLocal
(
val
),
NanNewLocal
(
val
),
NanNewLocal
(
source_map
)
NanNewLocal
(
ctx_w
->
stats
->
Get
(
NanSymbol
(
"sourceMap"
))
)
};
};
ctx_w
->
callback
->
Call
(
2
,
argv
);
ctx_w
->
callback
->
Call
(
2
,
argv
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment