MCPcopy Create free account
hub / github.com/dop251/goja / testScriptWithTestLibX

Function testScriptWithTestLibX

compiler_test.go:241–243  ·  view source on GitHub ↗
(script string, expectedResult Value, t *testing.T)

Source from the content-addressed store, hash-verified

239}
240
241func testScriptWithTestLibX(script string, expectedResult Value, t *testing.T) {
242 New().testScriptWithTestLibX(script, expectedResult, t)
243}
244
245func (r *Runtime) testAsyncFunc(src string, expectedResult Value, t *testing.T) {
246 v, err := r.RunScript("test.js", "(async function test() {"+src+"\n})()")

Callers 9

TestErrorStackRethrowFunction · 0.85
TestDestructSymbolFunction · 0.85
TestArrayConcatFunction · 0.85
TestArrayFlatFunction · 0.85
TestArrayFlatMapFunction · 0.85
TestObjectLiteralSpreadFunction · 0.85
TestObjectBindPatternFunction · 0.85
TestSrcLocationsFunction · 0.85

Calls 2

NewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…