Skip to content

Commit

Permalink
Add .isContext().
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 15, 2018
1 parent ed85032 commit 038c3cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ forEach(Object_keys(Script.prototype), function (name) {
};
});

exports.isContext = function (context) {
return context instanceof Context;
};

exports.createScript = function (code) {
return exports.Script(code);
};
Expand Down

0 comments on commit 038c3cb

Please sign in to comment.