-
-
Notifications
You must be signed in to change notification settings - Fork 263
Expand file tree
/
Copy pathexport_test.go
More file actions
23 lines (18 loc) · 634 Bytes
/
Copy pathexport_test.go
File metadata and controls
23 lines (18 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2019 Roger Chapman and the v8go contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package v8go
// RegisterCallback is exported for testing only.
func (i *Isolate) RegisterCallback(cb FunctionCallback) int {
return i.registerCallback(cb)
}
// GetCallback is exported for testing only.
func (i *Isolate) GetCallback(ref int) FunctionCallback {
return i.getCallback(ref)
}
// GetContext is exported for testing only.
var GetContext = getContext
// Ref is exported for testing only.
func (c *Context) Ref() int {
return c.ref
}