Skip to content

Commit

Permalink
Rename function to compileFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzokuken committed Jun 28, 2018
1 parent d306efd commit 40c2296
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {
kParsingContext,
makeContext,
isContext: _isContext,
getWrappedFunction
compileFunction: _compileFunction
} = process.binding('contextify');

const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes;
Expand Down Expand Up @@ -305,7 +305,7 @@ function compileFunction(code, params, options) {
parsingContext,
} = Object.assign(defaults, options);

return getWrappedFunction(
return _compileFunction(
code,
filename,
lineOffset,
Expand Down
4 changes: 2 additions & 2 deletions src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void ContextifyContext::Init(Environment* env, Local<Object> target) {

env->SetMethod(target, "makeContext", MakeContext);
env->SetMethod(target, "isContext", IsContext);
env->SetMethod(target, "getWrappedFunction", GetWrappedFunction);
env->SetMethod(target, "compileFunction", CompileFunction);
}


Expand Down Expand Up @@ -952,7 +952,7 @@ class ContextifyScript : public BaseObject {
};


void ContextifyContext::GetWrappedFunction(
void ContextifyContext::CompileFunction(
const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();
Expand Down

0 comments on commit 40c2296

Please sign in to comment.