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
9e436db7
Commit
9e436db7
authored
Nov 17, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Binding: Fixes for stats.
This code is ported from @mgreter's fork.
parent
4abc7ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
binding.cpp
src/binding.cpp
+14
-0
No files found.
src/binding.cpp
View file @
9e436db7
...
@@ -66,6 +66,20 @@ void FillStatsObj(Handle<Object> stats, Sass_Context* ctx) {
...
@@ -66,6 +66,20 @@ void FillStatsObj(Handle<Object> stats, Sass_Context* ctx) {
}
}
(
*
stats
)
->
Set
(
NanNew
(
"includedFiles"
),
arr
);
(
*
stats
)
->
Set
(
NanNew
(
"includedFiles"
),
arr
);
Handle
<
Value
>
source_map
;
if
(
sass_context_get_error_status
(
ctx
))
{
return
;
}
if
(
sass_context_get_source_map_string
(
ctx
))
{
source_map
=
NanNew
<
String
>
(
sass_context_get_source_map_string
(
ctx
));
}
else
{
source_map
=
NanNew
<
String
>
(
"{}"
);
}
(
*
stats
)
->
Set
(
NanNew
(
"sourceMap"
),
source_map
);
}
}
void
FillStatsObj
(
Handle
<
Object
>
stats
,
struct
Sass_File_Context
*
fctx
)
{
void
FillStatsObj
(
Handle
<
Object
>
stats
,
struct
Sass_File_Context
*
fctx
)
{
...
...
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