From 98a270a899f7f9093013e850dd8b86f9ca79d57c Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 11 Aug 2015 13:37:54 +0200 Subject: [PATCH] Lowercased functions. --- libjsengine/JSV8Engine.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libjsengine/JSV8Engine.cpp b/libjsengine/JSV8Engine.cpp index 471ea71e0..6d57cad48 100644 --- a/libjsengine/JSV8Engine.cpp +++ b/libjsengine/JSV8Engine.cpp @@ -95,7 +95,7 @@ void reportException(TryCatch* _tryCatch) } } -Handle ConsoleLog(Arguments const& _args) +Handle consoleLog(Arguments const& _args) { Local wrap = Local::Cast(_args.Data()); auto engine = reinterpret_cast(wrap->Value()); @@ -105,7 +105,7 @@ Handle ConsoleLog(Arguments const& _args) return Undefined(); } -Handle LoadScript(Arguments const& _args) +Handle loadScript(Arguments const& _args) { Local wrap = Local::Cast(_args.Data()); auto engine = reinterpret_cast(wrap->Value()); @@ -189,14 +189,14 @@ JSV8Engine::JSV8Engine(): m_scope(new JSV8Scope()) auto consoleTemplate = ObjectTemplate::New(); - Local consoleLog = FunctionTemplate::New(ConsoleLog, External::New(this)); - consoleTemplate->Set(String::New("debug"), consoleLog); - consoleTemplate->Set(String::New("log"), consoleLog); - consoleTemplate->Set(String::New("error"), consoleLog); + Local consoleLogFunction = FunctionTemplate::New(consoleLog, External::New(this)); + consoleTemplate->Set(String::New("debug"), consoleLogFunction); + consoleTemplate->Set(String::New("log"), consoleLogFunction); + consoleTemplate->Set(String::New("error"), consoleLogFunction); context()->Global()->Set(String::New("console"), consoleTemplate->NewInstance()); - Local loadScript = FunctionTemplate::New(LoadScript, External::New(this)); - context()->Global()->Set(String::New("loadScript"), loadScript->GetFunction()); + Local loadScriptFunction = FunctionTemplate::New(loadScript, External::New(this)); + context()->Global()->Set(String::New("loadScript"), loadScriptFunction->GetFunction()); } JSV8Engine::~JSV8Engine()