Skip to content

Commit

Permalink
NanNew redesign: Fix - Use Script::New instead of Script::Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
agnat committed Nov 6, 2014
1 parent a3d40e6 commit 090a6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nan_implementation_pre_12.inl
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ Factory<v8::RegExp>::New(v8::Handle<v8::String> pattern, v8::RegExp::Flags flags

Factory<v8::Script>::return_t
Factory<v8::Script>::New( v8::Local<v8::String> source) {
return v8::Script::Compile(source);
return v8::Script::New(source);
}
Factory<v8::Script>::return_t
Factory<v8::Script>::New( v8::Local<v8::String> source
, v8::ScriptOrigin const& origin)
{
return v8::Script::Compile(source, const_cast<v8::ScriptOrigin*>(&origin));
return v8::Script::New(source, const_cast<v8::ScriptOrigin*>(&origin));
}

//=== Signature ================================================================
Expand Down

0 comments on commit 090a6e6

Please sign in to comment.