Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 27adfc5

Browse files
committed
Update runtime binding script
1 parent dae6249 commit 27adfc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/binding.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
* node-sass: lib/binding.js
33
*/
44

5-
var errors = require('./errors');
6-
5+
var errors = require('./errors'),
6+
Constants = require('./constants');
77
/**
88
* Require binding
99
*/
1010
module.exports = function(ext) {
11-
if (!ext.hasBinary(ext.getBinaryPath())) {
11+
if (!ext.hasBinary(ext.getBinaryPath(Constants.DefaultOptions))) {
1212
if (!ext.isSupportedEnvironment()) {
1313
throw new Error(errors.unsupportedEnvironment());
1414
} else {
1515
throw new Error(errors.missingBinary());
1616
}
1717
}
1818

19-
return require(ext.getBinaryPath());
19+
return require(ext.getBinaryPath(Constants.DefaultOptions));
2020
};

0 commit comments

Comments
 (0)