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
f8309b5a
Commit
f8309b5a
authored
Apr 16, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checking that the right number of arguments are passed.
parent
22059711
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
eval_apply.cpp
eval_apply.cpp
+6
-1
exceptional.scss
exceptional.scss
+2
-1
No files found.
eval_apply.cpp
View file @
f8309b5a
...
@@ -347,7 +347,12 @@ namespace Sass {
...
@@ -347,7 +347,12 @@ namespace Sass {
}
}
}
}
else
{
else
{
// TO DO: ensure (j < params.size())
// ensure that the number of ordinal args < params.size()
if
(
j
>=
params
.
size
())
{
stringstream
ss
;
ss
<<
"mixin "
<<
mixin
[
0
].
to_string
(
""
)
<<
" only takes "
<<
params
.
size
()
<<
((
params
.
size
()
==
1
)
?
" argument"
:
" arguments"
);
eval_error
(
ss
.
str
(),
args
[
i
].
line_number
,
args
[
i
].
file_name
);
}
Node
param
(
params
[
j
]);
Node
param
(
params
[
j
]);
Token
name
(
param
.
type
==
Node
::
variable
?
param
.
content
.
token
:
param
[
0
].
content
.
token
);
Token
name
(
param
.
type
==
Node
::
variable
?
param
.
content
.
token
:
param
[
0
].
content
.
token
);
bindings
[
name
]
=
eval
(
args
[
i
],
env
,
f_env
);
bindings
[
name
]
=
eval
(
args
[
i
],
env
,
f_env
);
...
...
exceptional.scss
View file @
f8309b5a
...
@@ -37,5 +37,5 @@ $y: hey;
...
@@ -37,5 +37,5 @@ $y: hey;
}
}
div
{
div
{
@include
foo
(
$x
:
ho
,
goo
,
hey
,
b
oo
);
@include
foo
(
blah
,
$x
:
ho
,
g
oo
);
}
}
\ No newline at end of file
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