Sign in
◑
Theme
chromium
/
external
/
github.com
/
v8
/
node
/
f136e7ec312e2a0d3e7cba0b68f0aa92efdfeede
/
.
/
test
/
js-native-api
/
5_function_factory
/
test.js
blob: 9d4772985c2a40f1d53b49ab7ad7baecc1ae8f5d [
file
]
'use strict'
;
const
common
=
require
(
'../../common'
);
const
assert
=
require
(
'assert'
);
const
addon
=
require
(`./
build
/
$
{
common
.
buildType
}/
5
_function_factory
`);
const
fn
=
addon
();
assert
.
strictEqual
(
fn
(),
'hello world'
);
// 'hello world'