Skip to content

Commit

Permalink
src/bonescript: make myrequire file scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kridner committed Jan 23, 2019
1 parent b968db7 commit 1dcc7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"gpio",
"arduino"
],
"version": "0.7.0",
"version": "0.7.1",
"homepage": "http://beagleboard.org/bonescript",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/bonescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function _seqcall(data) {
// Require must be synchronous to be able to return data structures and
// functions and therefore cannot call socket.io. All exported modules must
// be exported ahead of time.
var myrequire = function (module) {
function myrequire(module) {
if (typeof _bonescript == 'undefined')
throw 'No BoneScript modules are not currently available';
if (typeof _bonescript.modules[module] == 'undefined')
Expand Down

0 comments on commit 1dcc7ff

Please sign in to comment.