In case of exception occuring during construction
of a Sass type instance just return Undefined value,
as the delayed JS exception will pop up later.
The following code:
var sass = require('./');
sass.render({
data: 'div { color: foo(); }',
functions: {
'foo()': function() {
return sass.types.Color(2,3);
}
}
});
now results in an libsass error
Constructor should be invoked with either 0, 1, 3 or 4 arguments
instead of V8 abort
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| libsass @ 0e6b4a28 | ||
| sass_types | Loading commit data... | |
| binding.cpp | Loading commit data... | |
| callback_bridge.h | Loading commit data... | |
| create_string.cpp | Loading commit data... | |
| create_string.h | Loading commit data... | |
| custom_function_bridge.cpp | Loading commit data... | |
| custom_function_bridge.h | Loading commit data... | |
| custom_importer_bridge.cpp | Loading commit data... | |
| custom_importer_bridge.h | Loading commit data... | |
| libsass.gyp | Loading commit data... | |
| sass_context_wrapper.cpp | Loading commit data... | |
| sass_context_wrapper.h | Loading commit data... |