Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
4ed4739d
Commit
4ed4739d
authored
Aug 19, 2015
by
Marcin Cieslak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit Local<> scope for wrapper construction
parent
8420fd9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
callback_bridge.h
src/callback_bridge.h
+2
-0
No files found.
src/callback_bridge.h
View file @
4ed4739d
...
...
@@ -59,6 +59,7 @@ CallbackBridge<T, L>::CallbackBridge(Nan::Callback* callback, bool is_sync) : ca
* This is invoked from the main JavaScript thread.
* V8 context is available.
*/
Nan
::
HandleScope
scope
;
if
(
!
is_sync
)
{
this
->
async
=
new
uv_async_t
;
this
->
async
->
data
=
(
void
*
)
this
;
...
...
@@ -180,6 +181,7 @@ NAN_METHOD(CallbackBridge<T COMMA L>::ReturnCallback) {
template
<
typename
T
,
typename
L
>
Nan
::
MaybeLocal
<
v8
::
Function
>
CallbackBridge
<
T
,
L
>::
get_wrapper_constructor
()
{
/* Uses handle scope created in the CallbackBridge<T, L> constructor */
if
(
wrapper_constructor
.
IsEmpty
())
{
v8
::
Local
<
v8
::
FunctionTemplate
>
tpl
=
Nan
::
New
<
v8
::
FunctionTemplate
>
(
New
);
tpl
->
SetClassName
(
Nan
::
New
(
"CallbackBridge"
).
ToLocalChecked
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment