From 090a6e6269867085e61911e802cd3ae3e19f0ade Mon Sep 17 00:00:00 2001 From: David Siegel Date: Thu, 6 Nov 2014 20:32:19 +0100 Subject: [PATCH] NanNew redesign: Fix - Use Script::New instead of Script::Compile --- nan_implementation_pre_12.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nan_implementation_pre_12.inl b/nan_implementation_pre_12.inl index 0a8d22bf..895f0f20 100644 --- a/nan_implementation_pre_12.inl +++ b/nan_implementation_pre_12.inl @@ -114,13 +114,13 @@ Factory::New(v8::Handle pattern, v8::RegExp::Flags flags Factory::return_t Factory::New( v8::Local source) { - return v8::Script::Compile(source); + return v8::Script::New(source); } Factory::return_t Factory::New( v8::Local source , v8::ScriptOrigin const& origin) { - return v8::Script::Compile(source, const_cast(&origin)); + return v8::Script::New(source, const_cast(&origin)); } //=== Signature ================================================================